Before the patch, Squid created shared memory segments as root and
workers failed to attach to it as non-root.
}
debugs(1,2, HERE << "Doing post-config initialization\n");
+ leave_suid();
ActivateRegistered(rrAfterConfig);
+ enter_suid();
if (!opt_no_daemon && Config.workers > 0)
watch_child(argv);
#endif
if (!TheKids.someRunning() && !TheKids.shouldRestartSome()) {
+ leave_suid();
DeactivateRegistered(rrAfterConfig);
+ enter_suid();
if (TheKids.someSignaled(SIGINT) || TheKids.someSignaled(SIGTERM)) {
syslog(LOG_ALERT, "Exiting due to unexpected forced shutdown");