At some point hitherto, Charles Jie hath spake thusly: > > > Aborting... (command "/usr/bin/maildrop ~/.maildroprc" returned 19200 (maildrop: >signal 0x06)) > > > > > > I can not explain the 'returned 19200'. For someone's exercise. ;-) > > > > It's the exit code and the signal, encoded in a standard format. It's > > not just the exit code. > > Really? That's beyond my knowledge. Pleae cite me for further info.
Well, I haven't seen the code, but it's probably the status field of the wait(2) system call. For details, see man 2 wait. Here's a little program that will give you a breakdown: ===== #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> main(){ printf("status (in hex) = %x\n", 19200); printf("WIFEXITED = %x\n", WIFEXITED(19200) ); printf("WEXITSTATUS = %x\n", WEXITSTATUS(19200) ); printf("WIFSIGNALED = %x\n", WIFSIGNALED(19200) ); printf("WTERMSIG = %x\n", WTERMSIG(19200) ); printf("WIFSTOPPED = %x\n", WIFSTOPPED(19200) ); printf("WSTOPSIG = %x\n", WSTOPSIG(19200) ); } ===== Here's the output: status (in hex) = 4b00 WIFEXITED = 1 WEXITSTATUS = 4b WIFSIGNALED = 0 WTERMSIG = 0 WIFSTOPPED = 0 WSTOPSIG = 4b Assuming this is what we're dealing with, it should mean that the program exited normally (WIFEXITED = 1) and that the exit status was 0x4b, or 60 decimal. It was not killed by a signal (WIFSIGNALED = 0), nor was it stopped (WIFSTOPPED = 0). The value 4b associated with the WSTOPSIG macro is meaningless, because WIFSTOPPED is false. There's also a good discussion of this in W. Richard Stevens, "Advanced Programming in the Unix Environment" if you're interested. -- Derek Martin [EMAIL PROTECTED] --------------------------------------------- I prefer mail encrypted with PGP/GPG! GnuPG Key ID: 0x81CFE75D Retrieve my public key at http://pgp.mit.edu Learn more about it at http://www.gnupg.org
msg23319/pgp00000.pgp
Description: PGP signature