From 869865269995d67e5c30f45393e83eeee5229647 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 22 Feb 1998 16:45:08 +0000 Subject: EMX changes for OS/2. svn path=/trunk/; revision=1668 --- daemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 5c66ed5a..e7b9214b 100644 --- a/daemon.c +++ b/daemon.c @@ -127,8 +127,9 @@ daemonize (const char *logfile, void (*termhook)(int)) } #elif defined(SIGTSTP) /* BSD */ /* change process group */ +#ifndef __EMX__ setpgrp(0, getpid()); - +#endif /* lose controlling tty */ if ((fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(fd, TIOCNOTTY, (char *) 0); @@ -136,7 +137,9 @@ daemonize (const char *logfile, void (*termhook)(int)) } #else /* SVR3 and older */ /* change process group */ +#ifndef __EMX__ setpgrp(); +#endif /* lose controlling tty */ signal(SIGHUP, SIG_IGN); -- cgit v1.2.3