bk: 4febf990yCArbG3UG0zzo-2Vxz9vbg
+* CID 709169: check return from open("/dev/null", 0) and friends.
(4.2.7p285) 2012/06/18 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2227] Enable mrulist access control via "restrict ... nomrulist".
* Automake-1.12 wants us to use AM_PROG_AR.
syslogit = TRUE;
}
close_all_except(waitsync_fd_to_close);
- open("/dev/null", 0);
- dup2(0, 1);
- dup2(0, 2);
+ INSIST(0 == open("/dev/null", 0) && 1 == dup2(0, 1) \
+ && 2 == dup2(0, 2));
init_logging(progname, 0, TRUE);
/* we lost our logfile (if any) daemonizing */