mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
b6b27bc383
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.