mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
Assign process ivar from within spawn
This commit is contained in:
parent
96f0916ddd
commit
78d2c868f7
@ -69,9 +69,9 @@ class BufferedProcess
|
||||
cmdArgs = ['/s', '/c', "\"#{cmdArgs.join(' ')}\""]
|
||||
cmdOptions = _.clone(options)
|
||||
cmdOptions.windowsVerbatimArguments = true
|
||||
@process = @spawn(@getCmdPath(), cmdArgs, cmdOptions)
|
||||
@spawn(@getCmdPath(), cmdArgs, cmdOptions)
|
||||
else
|
||||
@process = @spawn(command, args, options)
|
||||
@spawn(command, args, options)
|
||||
|
||||
@killed = false
|
||||
@handleEvents(stdout, stderr, exit) if @process?
|
||||
@ -187,10 +187,9 @@ class BufferedProcess
|
||||
|
||||
spawn: (command, args, options) ->
|
||||
try
|
||||
spawned = ChildProcess.spawn(command, args, options)
|
||||
@process = ChildProcess.spawn(command, args, options)
|
||||
catch spawnError
|
||||
process.nextTick => @handleError(spawnError)
|
||||
spawned
|
||||
|
||||
handleEvents: (stdout, stderr, exit) ->
|
||||
stdoutClosed = true
|
||||
|
Loading…
Reference in New Issue
Block a user