Skip to content

Commit

Permalink
return empty list when passenger status times out
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Oct 3, 2012
1 parent 4352af0 commit 83858b3
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 @@ -192,7 +192,7 @@ def timeout_command(command, timeout):
if (now - start).seconds> timeout:
os.system("sudo kill %s" % process.pid)
os.waitpid(-1, os.WNOHANG)
return None
return []
return process.stdout.readlines()

if __name__ == '__main__':
Expand Down

0 comments on commit 83858b3

Please sign in to comment.