On Thu, 14 Dec 2006, Graeme B. Davis wrote:
> : Roxen WebServer down with code 137.
> : Roxen WebServer down with code 138.
> : Roxen WebServer down with code 139.
> : Roxen WebServer down with code 144.
Error codes above 128 are death by signal.
Subtract 128 from the above codes, and you get the signal number. ie
signo Solaris Linux BSD
9 KILL KILL KILL
10 BUS USR1 BUS
11 SEGV SEGV SEGV
16 USR1 STKFLT URG
> : Roxen WebServer down with code 255.
255 is exit code -1, which is used to tell the start script to restart the
server.
(Exit code 0 (zero) is used to tell the start script to exit (shutdown)).
> Where do I get a list of what these codes mean?
Usually the man pages for wait(2) et al contain a description of how
status codes are encoded. You may also want to look at the implementation
of WEXITSTATUS() and the other macros in <sys/wait.h>.
--
Henrik Grubbström <grubba[at]roxen.com>
Roxen Internet Software AB
|