summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/echo_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c
index 555c3b4..9a81c42 100644
--- a/tests/echo_srv.c
+++ b/tests/echo_srv.c
@@ -916,7 +916,7 @@ int main(int argc, char **argv)
echo(sock, &opts);
close(sock);
- if (opts.daemon) {
+ if (opts.daemon && opts.pidfile != NULL) {
unlink(opts.pidfile);
}