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
signal String the signal passed to kill the child process, if it was killed by the parent.
This event is emitted after the child process ends. If the process terminated normally, code is the final exit code of the process, otherwise null. If the process terminated due to receipt of a signal, signal is the string name of the signal, otherwise null.
Note that the child process stdio streams might still be open.
Also, note that node establishes signal handlers for 'SIGINT' and 'SIGTERM', so it will not terminate due to receipt of those signals, it will exit.
See waitpid(2).
Event: 'close'
code Number the exit code, if it exited normally.
signal String the signal passed to kill the child process, if it was killed by the parent.
This event is emitted when the stdio streams of a child process have all terminated. This is distinct from 'exit', since multiple processes might share the same stdio streams.
The text was updated successfully, but these errors were encountered:
When monitoring the ElasticSearch server, listen for
exit
event instead ofclose
event.See documentation as to the difference between the two: http://nodejs.org/api/child_process.html#child_process_event_exit
Event: 'exit'
code
Number the exit code, if it exited normally.signal
String the signal passed to kill the child process, if it was killed by the parent.This event is emitted after the child process ends. If the process terminated normally,
code
is the final exit code of the process, otherwisenull
. If the process terminated due to receipt of a signal,signal
is the string name of the signal, otherwisenull
.Note that the child process stdio streams might still be open.
Also, note that node establishes signal handlers for
'SIGINT'
and'SIGTERM'
, so it will not terminate due to receipt of those signals, it will exit.See
waitpid(2)
.Event: 'close'
code
Number the exit code, if it exited normally.signal
String the signal passed to kill the child process, if it was killed by the parent.This event is emitted when the stdio streams of a child process have all terminated. This is distinct from 'exit', since multiple processes might share the same stdio streams.
The text was updated successfully, but these errors were encountered: