Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #264 from apiaryio/wvi/reporter-issue-quick-fix
Browse files Browse the repository at this point in the history
Quick fix for the reporters issue #263
  • Loading branch information
kuba-kubula committed Aug 21, 2015
2 parents 098be8f + 174acf2 commit d9034fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dredd-command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ class DreddCommand
@_processExit(2)

# Ensure server is not running when dredd exits prematurely somewhere
process.on 'beforeExit', () ->
process.on 'beforeExit', () =>
@serverProcess.kill('SIGKILL') if @serverProcess?

# Ensure server is not running when dredd exits prematurely somewhere
process.on 'exit', () ->
process.on 'exit', () =>
@serverProcess.kill('SIGKILL') if @serverProcess?

waitSecs = parseInt(@argv['server-wait'], 10)
Expand Down
4 changes: 2 additions & 2 deletions src/hooks-worker-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ handler.stderr.on 'data', (data) ->
console.log "Hook handler stderr:", data.toString()

handler.on 'close', (status) ->
console.log "Hook handler exited with status: #{status}"
if status != 0
console.log "Hook handler closed with status: #{status}"
if status? and status != 0
hooks.processExit 2

handler.on 'error', (error) ->
Expand Down

0 comments on commit d9034fb

Please sign in to comment.