Skip to content

Fix fatal exception when pid is nil#164

Merged
eric merged 1 commit intomojombo:masterfrom
turley:patch-1
Mar 6, 2014
Merged

Fix fatal exception when pid is nil#164
eric merged 1 commit intomojombo:masterfrom
turley:patch-1

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