mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
The auto restart logic was sending a USR2 to the parent process without checking what the parent process actually was. In some situations, it might not be the `bin/unicorn` supervisor. This commit switches to use a global variable for the supervisor PID. This will be much less prone to unexpected behavior.