Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
dsandstrom committed Aug 12, 2014
1 parent 4d5f543 commit 11b795f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keymaps/ruby-test.cson
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
'cmd-ctrl-t': 'ruby-test:test-file'
'cmd-ctrl-r': 'ruby-test:test-single'
'cmd-ctrl-e': 'ruby-test:test-previous'
'ctrl-c': 'ruby-test:cancel'
'cmd-ctrl-c': 'ruby-test:cancel'
4 changes: 1 addition & 3 deletions lib/shell-runner.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ module.exports =
kill: ->
@killed = true
if @process?
console.log("Sending kill")
@process.kill('SIGKILL')

newProcess: ->
process = ChildProcess.spawn('bash', ['-l'])
process.on 'close', =>
console.log "Closing"
@params.exit()
process.on 'exit', (code, signal) =>
console.log "Exited with code(#{code}) and signal: #{signal}"
@params.exit()
process.stdout.on 'data', @write
process.stderr.on 'data', @write
process

0 comments on commit 11b795f

Please sign in to comment.