diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-02-22 16:45:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-02-22 16:45:08 +0000 |
commit | 869865269995d67e5c30f45393e83eeee5229647 (patch) | |
tree | 2bd23d0a2d62c92e28b6b8589f21848a9404f306 /daemon.c | |
parent | d8e3aad2c36043d83d9ddc6af71a4724d3433096 (diff) | |
download | fetchmail-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |