-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Description
This is the same problem as seen in #8 (which is closed).
The following spawns a bash shell every 3 seconds, and destroys each one after 500ms. It leaves behind a bunch of zombie processes.
PTY = require("pty.js")
console.log "Process: #{process.pid}"
bash = ->
pty = PTY.spawn("bash",[],{
name: 'xterm-color'
cwd: process.cwd()
env: process.env
})
setTimeout (->
console.log "kill", pty.pid
# Both of the following leave zombie processes
# process.kill(pty.pid,"SIGTERM")
# process.kill(pty.pid,"SIGHUP")
pty.destroy()
), 500
setInterval (-> bash()), 3000
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels