~rousskov/squid/3p1-rock

Viewing all changes in revision 9638.

  • Committer: Alex Rousskov
  • Date: 2012-08-30 17:35:05 UTC
  • Revision ID: rousskov@measurement-factory.com-20120830173505-h0a6wan1rcxu1p7u
If a worker process crashes during shutdown, dump core and prevent restarts.

Before the change, if a worker process crashes during shutdown, death()
handler would exit with code 1, and master process would restart the
worker. Now workers send SIGUSR1 to master when shutting down. When
master process gets the SIGUSR1 signal, it stops restarting workers.

SIGUSR1 is already used for log rotation, but it is fine to use SIGUSR1
for master process shutdown notifications because master is never
responsible for both log rotation and kid restarts.

Terminate with abort(3) instead of exit(3) to leave a core dump if Squid
worker crashes during shutdown.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: