mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05: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.