From c70d8528fccd50a8af1843e6c8e0da43f56f1f35 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 31 Jan 2000 06:09:06 +0000 Subject: Label save closes. svn path=/trunk/; revision=2723 --- daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon.c') diff --git a/daemon.c b/daemon.c index 08366bf1..c588ae47 100644 --- a/daemon.c +++ b/daemon.c @@ -135,7 +135,7 @@ daemonize (const char *logfile, void (*termhook)(int)) /* lose controlling tty */ if ((fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(fd, TIOCNOTTY, (char *) 0); - close(fd); + close(fd); /* not checking should be safe, there were no writes */ } #else /* SVR3 and older */ /* change process group */ @@ -165,7 +165,7 @@ nottyDetach: for (fd = 19; fd >= 0; fd--) #endif { - close(fd); + close(fd); /* not checking this should be safe, no writes */ } /* Reopen stdin descriptor on /dev/null */ -- cgit v1.2.3