Expand description
Bash exit codes
Constants§
- INVALID_
EXIT - Usually indicates that the command was not found by the shell, or that the command is found but that a library it requires is not found.
- NOT_
EXECUTABLE - Command was found but is not executable by the shell.
- NOT_
FOUND - Usually indicates that the command was not found by the shell, or that the command is found but that a library it requires is not found.
- SIGABRT
- The
SIGABRTsignal is sent to a process by its controlling terminal when process abort signal - SIGALRM
- The
SIGALRMsignal is sent to a process when the time limit specified in a call to a preceding alarm setting function (such assetitimer) elapses. - SIGFPE
- The
SIGFPEsignal is sent to a process by its controlling terminal when there is an erroneous arithmetic operation - SIGHUP
- The
SIGHUPsignal is sent to a process when its controlling terminal is closed. - SIGILL
- The
SIGILLsignal is sent to a process by its controlling terminal when an illegal instruction is encountered - SIGINT
- The
SIGINTsignal is sent to a process by its controlling terminal when a user wishes to interrupt the process. - SIGKILL
- The
SIGKILLsignal is sent to a process to cause it to terminate immediately. In contrast toSIGTERMandSIGINT, this signal cannot be caught or ignored, and the receiving process cannot perform any clean-up upon receiving this signal. - SIGPIPE
- The
SIGPIPEsignal is sent to a process when it attempts to write to a pipe without a process connected to the other end. - SIGQUIT
- The
SIGQUITsignal is sent to a process by its controlling terminal when a user quit from keyboard (Ctrl-. or, Ctrl-4 or, on the virtual console, theSysRqkey) - SIGSEGV
- The
SIGSEGVsignal is sent to a process on invalid memory reference - SIGTERM
- The
SIGTERMsignal is sent to a process to request its termination. Unlike theSIGKILLsignal, it can be caught and interpreted or ignored by the process. - SIGTRAP
- The
SIGTRAPsignal is sent to a process by its controlling terminal when there is a trace/breakpoint trap - STATUS_
OUT_ OF_ RANGE - Exit status out of range
- USAGE
- Command line usage error
Functions§
- io_
to_ signal - Convert
std::io::ErrorKindto aCode