Synchronously get the signal code of the process
If the process never sent a signal code, this will return null
To receive signal code changes, use the onExit
callback.
If the signal code is unknown, it will return the original signal code number, but that case should essentially never happen.