tigervnc/tigervnc-correctly-start-vncsession-as-daemon.patch
Jan Grulich 455d814fe8 SELinux improvements
Backport some CentOS changes
2021-05-25 14:29:01 +02:00

14 lines
335 B
Diff

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 */