version 1.1, 1999/09/26 20:53:36 |
version 1.2, 1999/09/29 21:15:54 |
|
|
close(fd); |
close(fd); |
} |
} |
#endif /* TIOCNOTTY */ |
#endif /* TIOCNOTTY */ |
#ifdef HAVE_SETSID |
|
#ifdef ultrix |
|
setpgrp(0, 0); |
|
#else /* ultrix */ |
|
if (setsid() < 0) |
if (setsid() < 0) |
error("setsid: %.100s", strerror(errno)); |
error("setsid: %.100s", strerror(errno)); |
#endif /* ultrix */ |
|
#endif /* HAVE_SETSID */ |
|
|
|
/* Verify that we are successfully disconnected from the controlling tty. */ |
/* Verify that we are successfully disconnected from the controlling tty. */ |
fd = open("/dev/tty", O_RDWR|O_NOCTTY); |
fd = open("/dev/tty", O_RDWR|O_NOCTTY); |