mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Split on whitespace when parsing pids
This commit is contained in:
@@ -134,7 +134,7 @@ class BufferedProcess
|
||||
output = ''
|
||||
wmicProcess.stdout.on 'data', (data) -> output += data
|
||||
wmicProcess.stdout.on 'close', =>
|
||||
pidsToKill = output.split('\n')
|
||||
pidsToKill = output.split(/\s+/)
|
||||
.filter (pid) -> /^\d+$/.test(pid)
|
||||
.map (pid) -> parseInt(pid)
|
||||
.filter (pid) -> not pid is parentPid
|
||||
|
||||
Reference in New Issue
Block a user