aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-22 16:45:08 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-22 16:45:08 +0000
commit869865269995d67e5c30f45393e83eeee5229647 (patch)
tree2bd23d0a2d62c92e28b6b8589f21848a9404f306 /daemon.c
parentd8e3aad2c36043d83d9ddc6af71a4724d3433096 (diff)
downloadfetchmail-869865269995d67e5c30f45393e83eeee5229647.tar.gz
fetchmail-869865269995d67e5c30f45393e83eeee5229647.tar.bz2
fetchmail-869865269995d67e5c30f45393e83eeee5229647.zip
EMX changes for OS/2.
svn path=/trunk/; revision=1668
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c5
1 files changed, 4 insertions, 1 deletions
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);