Skip to content

Commit

Permalink
Merge pull request #90 from cramerdev/passenger
Browse files Browse the repository at this point in the history
kill passenger status on timeout with sudo
  • Loading branch information
jbuchbinder committed Oct 1, 2012
2 parents 9748f51 + 3d754e1 commit 280e538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passenger/python_modules/passenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def timeout_command(command, timeout):
time.sleep(0.2)
now = datetime.datetime.now()
if (now - start).seconds> timeout:
os.kill(process.pid, signal.SIGKILL)
os.system("sudo kill %s" % process.pid)
os.waitpid(-1, os.WNOHANG)
return None
return process.stdout.readlines()
Expand Down

0 comments on commit 280e538

Please sign in to comment.