Expand description
Bash exit codes
Constants
- 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.
- Command was found but is not executable by the shell.
- 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.
- The
SIGABRT
signal is sent to a process by its controlling terminal when process abort signal - 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. - The
SIGFPE
signal is sent to a process by its controlling terminal when there is an erroneous arithmetic operation - The
SIGHUP
signal is sent to a process when its controlling terminal is closed. - The
SIGILL
signal is sent to a process by its controlling terminal when an illegal instruction is encountered - The
SIGINT
signal is sent to a process by its controlling terminal when a user wishes to interrupt the process. - 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. - The
SIGPIPE
signal is sent to a process when it attempts to write to a pipe without a process connected to the other end. - 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, the SysRq key) - The
SIGSEGV
signal is sent to a process on invalid memory reference - 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. - The
SIGTRAP
signal is sent to a process by its controlling terminal when there is a trace/breakpoint trap - Exit status out of range
- Command line usage error
Functions
- Convert
std::io::ErrorKind
to aCode