diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-28 23:55:00 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-28 23:55:00 +0000 |
commit | 114621ca1b0a02f6cb12cf29c5f700da79c57a8d (patch) | |
tree | 975cd3771519c1ee2685fd0fc66ac80db1f958d2 /libdaemon/dfork.c | |
parent | 12ca6bf367c9903d97b9cac6297e3df422c3cd44 (diff) |
fixes needed for windows and solaris
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@94 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
Diffstat (limited to 'libdaemon/dfork.c')
-rw-r--r-- | libdaemon/dfork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdaemon/dfork.c b/libdaemon/dfork.c index 263c6f5..19e02a0 100644 --- a/libdaemon/dfork.c +++ b/libdaemon/dfork.c @@ -210,12 +210,12 @@ pid_t daemon_fork(void) { setsid(); setpgid(0,0); - +#ifdef TIOCNOTTY if ((tty_fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(tty_fd, TIOCNOTTY, NULL); close(tty_fd); } - +#endif dpid = getpid(); if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid)) goto fail; |