tigervnc/SOURCES/tigervnc-correctly-start-vncsession-as-daemon.patch

14 lines
335 B
Diff
Raw Normal View History

2020-12-08 10:13:19 +00:00
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 */