Lines 1912-1918
watch_child(const CommandLine &masterCom
Link Here
|
1912 |
|
1912 |
|
1913 |
enter_suid(); |
1913 |
enter_suid(); |
1914 |
|
1914 |
|
1915 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); |
1915 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4); |
1916 |
|
1916 |
|
1917 |
if (!opt_foreground) |
1917 |
if (!opt_foreground) |
1918 |
GoIntoBackground(); |
1918 |
GoIntoBackground(); |
Lines 2012-2018
watch_child(const CommandLine &masterCom
Link Here
|
2012 |
|
2012 |
|
2013 |
if ((pid = fork()) == 0) { |
2013 |
if ((pid = fork()) == 0) { |
2014 |
/* child */ |
2014 |
/* child */ |
2015 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); |
2015 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4); |
2016 |
(void)execvp(masterCommand.arg0(), kidCommand.argv()); |
2016 |
(void)execvp(masterCommand.arg0(), kidCommand.argv()); |
2017 |
int xerrno = errno; |
2017 |
int xerrno = errno; |
2018 |
syslog(LOG_ALERT, "execvp failed: %s", xstrerr(xerrno)); |
2018 |
syslog(LOG_ALERT, "execvp failed: %s", xstrerr(xerrno)); |
Lines 2024-2030
watch_child(const CommandLine &masterCom
Link Here
|
2024 |
} |
2024 |
} |
2025 |
|
2025 |
|
2026 |
/* parent */ |
2026 |
/* parent */ |
2027 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY | LOG_CONS, LOG_LOCAL4); |
2027 |
openlog(APP_SHORTNAME, LOG_PID | LOG_NDELAY, LOG_LOCAL4); |
2028 |
|
2028 |
|
2029 |
// If Squid received a signal while checking for dying kids (below) or |
2029 |
// If Squid received a signal while checking for dying kids (below) or |
2030 |
// starting new kids (above), then do a fast check for a new dying kid |
2030 |
// starting new kids (above), then do a fast check for a new dying kid |