Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fatal exception when pid is nil #164

Merged
merged 1 commit into from
Mar 6, 2014
Merged

Fix fatal exception when pid is nil #164

merged 1 commit into from
Mar 6, 2014

Conversation

turley
Copy link
Contributor

@turley turley commented Mar 6, 2014

pid may return a nil value (if never found in pid_file) causing Process.kill to throw an exception (TypeError: no implicit conversion from nil to integer). We should check to make sure the pid isn't nil before attempting to kill it. Warn (once) about the missing pid. Don't interrupt polling in case a valid pid_file shows up while polling.

pid may return a nil value (if never found in pid_file) causing Process.kill to throw an exception (TypeError: no implicit conversion from nil to integer). We should check to make sure the pid isn't nil before attempting to kill it. Warn (once) about the missing pid. Don't interrupt polling in case a valid pid_file shows up while polling.
@eric
Copy link
Collaborator

eric commented Mar 6, 2014

Great idea! Thanks!

eric added a commit that referenced this pull request Mar 6, 2014
Fix fatal exception when pid is nil
@eric eric merged commit 3cfcbc9 into mojombo:master Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants