pub fn signal_number(name: &str) -> Option<c_int>Expand description
A signal NAME ("SIGKILL", case-insensitive) to its number, or None if the
name is not one this platform defines.
The numbers come from libc, not from a hand-written table: signal numbering
differs between macOS and Linux above SIGTERM (SIGUSR1 is 30 on Darwin and
10 on Linux), so a literal table is only correct on the platform it was
written for. Shared with cluster’s worker.kill.