summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mactelnetd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mactelnetd.c b/mactelnetd.c
index aef5027..ba1aad6 100644
--- a/mactelnetd.c
+++ b/mactelnetd.c
@@ -922,6 +922,11 @@ int main (int argc, char **argv) {
if (!foreground) {
daemonize();
+ } else {
+ signal(SIGCHLD,SIG_IGN);
+ signal(SIGTSTP,SIG_IGN);
+ signal(SIGTTOU,SIG_IGN);
+ signal(SIGTTIN,SIG_IGN);
}
openlog("mactelnetd", LOG_PID, LOG_DAEMON);