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
SIGABRT
signal is sent to a process by its controlling terminal when process abort signal - SIGALRM
- The
SIGALRM
signal is sent to a process when the time limit specified in a call to a preceding alarm setting function (such assetitimer
) elapses. - SIGFPE
- The
SIGFPE
signal is sent to a process by its controlling terminal when there is an erroneous arithmetic operation - SIGHUP
- The
SIGHUP
signal is sent to a process when its controlling terminal is closed. - SIGILL
- The
SIGILL
signal is sent to a process by its controlling terminal when an illegal instruction is encountered - SIGINT
- The
SIGINT
signal is sent to a process by its controlling terminal when a user wishes to interrupt the process. - SIGKILL
- The
SIGKILL
signal is sent to a process to cause it to terminate immediately. In contrast toSIGTERM
andSIGINT
, this signal cannot be caught or ignored, and the receiving process cannot perform any clean-up upon receiving this signal. - SIGPIPE
- The
SIGPIPE
signal is sent to a process when it attempts to write to a pipe without a process connected to the other end. - SIGQUIT
- The
SIGQUIT
signal is sent to a process by its controlling terminal when a user quit from keyboard (Ctrl-. or, Ctrl-4 or, on the virtual console, theSysRq
key) - SIGSEGV
- The
SIGSEGV
signal is sent to a process on invalid memory reference - SIGTERM
- The
SIGTERM
signal is sent to a process to request its termination. Unlike theSIGKILL
signal, it can be caught and interpreted or ignored by the process. - SIGTRAP
- The
SIGTRAP
signal 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::ErrorKind
to aCode