subprocess.signalCode
subprocess.signalCode 属性表示子进程接收到的信号(如果有),否则为 null。
🌐 The subprocess.signalCode property indicates the signal received by
the child process if any, else null.
当子进程被信号终止时,subprocess.exitCode 将为 null。
要获取对应的 POSIX 退出码,请使用 util.convertProcessSignalToExitCode(subprocess.signalCode)。
🌐 When the child process is terminated by a signal, subprocess.exitCode will be null.
To get the corresponding POSIX exit code, use
util.convertProcessSignalToExitCode(subprocess.signalCode).