The subprocess.signalCode property indicates the signal received by the child process if any, else null.
property
child_process.ChildProcess.signalCode
readonly signalCode: null | Signals