diff --git a/unix/vncserver/vncsession.c b/unix/vncserver/vncsession.c index 2b47f5f5..f78c096f 100644 --- a/unix/vncserver/vncsession.c +++ b/unix/vncserver/vncsession.c @@ -99,7 +99,7 @@ begin_daemon(void) return -1; } - if (pid == 0) + if (pid != 0) _exit(0); /* Send all stdio to /dev/null */