Supervisor/supervisor — Issue #51: Signals can be orphaned
Author: adembo
Created: 2011-11-18 22:04:32+00:00
State: open

Supervisor's signal handler stores the received signal in a variable as opposed to a list. This means that (hypotheticall) if a SIGTERM arrives just before a SIGCHLD from a managed process, the SIGTERM can be orphaned.

The signal handler should add the received signal to a queue of some kind and handle_signal should process all of the signals in the queue.