-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move PID deletion out of DEMOLISH method
There is no guarantee from Perl that it's called in a timely manner or order when shutting down. The `pid_file` field may no longer be set. This might explain why the PID file was never cleaned up. Move it instead to the `run` method, where it should always run once a signal handler has set `continue` to false. It exits the loop on the next run, then cleans up the PID file before exiting. At least that's the idea. Move the PID test to the `run` test section of `t/consumer.t`, since `run` is where it happens now.
- Loading branch information
Showing
3 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters