20250904221511-unix exit code for sigterm processes
20250904221511
I found on internet that SIGTERM’d processes should return 143.
I couldn’t find a source for 143 being the status code for SIGTERM handler.
I inspected the glibc code but nothing.
Finally I found:
https://tldp.org/LDP/abs/html/exitcodes.html
which refers to fake signal as 128 + signal. Sigterm is 15 so 143