-
Committer:
Christos Tsantilas
-
Date:
2015-03-17 11:59:53 UTC
-
Revision ID:
chtsanti@users.sourceforge.net-20150317115953-nhmi10448ez0c3a6
start workers as root
SMP workers in trunk start without root privileges. This results in startup
failures when workers need to use a privileged port (e.g., 443) or other
root-only features such as TPROXY.
The watch_child function, responsible to watch and start squid workers for
the squid monitor process, called after a enter_suid() call, but the
writePidFile() call, inside the watch_child(), will leave suid mode before exit.
This patch add enter_suid() cals after the writePidFile and removePidFile()
inside the watch_child() function.
This is a Measurement Factory project