summaryrefslogtreecommitdiffstats
path: root/x11vnc/user.c
diff options
context:
space:
mode:
authorrunge <runge>2006-02-20 19:19:30 +0000
committerrunge <runge>2006-02-20 19:19:30 +0000
commit603b5667b64aa5aaea0aa7e575fb4cb2c2b6d7c7 (patch)
tree582b98055d3f8edf42fff571a3443ff0dfaa1256 /x11vnc/user.c
parent4b8cc33e39e1d2f4eb459312659eff873a41e4db (diff)
downloadlibvncserver-603b5667b64aa5aaea0aa7e575fb4cb2c2b6d7c7.zip
libvncserver-603b5667b64aa5aaea0aa7e575fb4cb2c2b6d7c7.tar.gz
fix some non-gcc compiler warnings and signals in x11vnc
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r--x11vnc/user.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 6d173ab..5269d50 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -557,6 +557,11 @@ static int try_user_and_display(uid_t uid, char *dpystr) {
Display *dpy2 = NULL;
int rc;
+ signal(SIGHUP, SIG_DFL);
+ signal(SIGINT, SIG_DFL);
+ signal(SIGQUIT, SIG_DFL);
+ signal(SIGTERM, SIG_DFL);
+
rc = switch_user_env(uid, name, home, 0);
if (! rc) {
exit(1);
OpenPOWER on IntegriCloud