--- src/stunnel.c.orig 2012-02-29 12:15:30.000000000 +0400 +++ src/stunnel.c 2012-02-29 12:14:51.000000000 +0400 @@ -116,6 +116,9 @@ return 1; #endif /* standard Unix */ signal(SIGCHLD, signal_handler); /* handle dead children */ + if (global_options.chroot_dir) + signal(SIGHUP, SIG_IGN); + else signal(SIGHUP, signal_handler); /* configuration reload */ signal(SIGUSR1, signal_handler); /* log reopen */ signal(SIGPIPE, SIG_IGN); /* ignore broken pipe */