From 50e8e4f84675b083592fcbe935cc5a04a75386c8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 24 Aug 1996 17:22:15 +0000 Subject: Fix the illegal-terminal problem. svn path=/trunk/; revision=62 --- daemon.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 89ccdcd6..56de2deb 100644 --- a/daemon.c +++ b/daemon.c @@ -34,8 +34,6 @@ #include "popclient.h" -static void (*my_termhook)(int); - /****************************************************************** function: sigchld_handler description: Process the SIGCHLD (a.k.a SIGCLD) signal by calling @@ -58,9 +56,6 @@ sigchld_handler () int status; #endif - if (my_termhook) - (*my_termhook)(SIGCHLD); - #if defined(HAVE_WAIT3) while ((pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0) ; /* swallow 'em up. */ @@ -101,8 +96,6 @@ void (*termhook)(int); /* if we are started by init (process 1) via /etc/inittab we needn't bother to detach from our process group context */ - my_termhook = termhook; - if (getppid() == 1) goto nottyDetach; -- cgit v1.2.3