Permalink
Browse files

Wrap SIGINT event in conditional so it runs on Win32

  • Loading branch information...
Tom Bell
Tom Bell committed Nov 29, 2011
1 parent 392cd7f commit 33b4461e7f35f1ccba2771a8801612662ed38a50
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/hubot
View
@@ -58,7 +58,9 @@ Parser.on "version", (opt, value) ->
Parser.parse process.argv
-process.on 'SIGTERM', -> process.exit(0)
+unless process.platform is "win32"
+ process.on 'SIGTERM', ->
+ process.exit 0
if Options.create
creator = new Creator.Creator(Options.path)

0 comments on commit 33b4461

Please sign in to comment.