later in ipcCreate() where Squid stays in a do loop if it cannot
open /dev/null.
/*
- * $Id: main.cc,v 1.379 2003/05/06 00:29:45 hno Exp $
+ * $Id: main.cc,v 1.380 2003/06/08 23:27:50 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
/* Connect stdio to /dev/null in daemon mode */
nullfd = open("/dev/null", O_RDWR | O_TEXT);
+ if (nullfd < 0)
+ fatalf("/dev/null: %s\n", xstrerror());
+
dup2(nullfd, 0);
if (opt_debug_stderr < 0) {