--------------------- PatchSet 11326 Date: 2007/03/12 22:25:40 Author: hno Branch: SQUID_2_6 Tag: (none) Log: MFC: Make sure the child worker process commits suicide if it could not start up If for some reason Squid is not allowed to exec itself in daemon mode then very odd results could be seen. Members: src/main.c:1.393.2.1->1.393.2.2 Index: squid/src/main.c =================================================================== RCS file: /cvsroot/squid/squid/src/main.c,v retrieving revision 1.393.2.1 retrieving revision 1.393.2.2 diff -u -r1.393.2.1 -r1.393.2.2 --- squid/src/main.c 3 Feb 2007 21:55:42 -0000 1.393.2.1 +++ squid/src/main.c 12 Mar 2007 22:25:40 -0000 1.393.2.2 @@ -1,6 +1,6 @@ /* - * $Id: main.c,v 1.393.2.1 2007/02/03 21:55:42 hno Exp $ + * $Id: main.c,v 1.393.2.2 2007/03/12 22:25:40 hno Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -1013,6 +1013,7 @@ argv[0] = xstrdup("(squid)"); execvp(prog, argv); syslog(LOG_ALERT, "execvp failed: %s", xstrerror()); + exit(1); } /* parent */ openlog(appname, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4);