You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Node.js child_process module also provide close and exit events. There close means that all data were delivered and exit that the process exits. exit can happen before close, because child processes can use shared stdio streams: https://nodejs.org/api/child_process.html#child_process_event_close
Does it mean the same for node-pty? If not what would be the analogy instead?
The text was updated successfully, but these errors were encountered:
The API only exposes onExit and onData events, that's probably why sometimes not all data gets flushed when using exit so it's probably a good idea to add an onClose event following these semantics. See here:
In Node.js child_process module also provide
close
andexit
events. Thereclose
means that all data were delivered andexit
that the process exits.exit
can happen beforeclose
, because child processes can use shared stdio streams: https://nodejs.org/api/child_process.html#child_process_event_closeDoes it mean the same for node-pty? If not what would be the analogy instead?
The text was updated successfully, but these errors were encountered: