from system(3) man page RETURN VALUES The system() function returns the exit status of the shell as returned by waitpid(2), or -1 if an error occurred when invoking fork(2) or waitpid(2). A return value of 127 means the execution of the shell failed. It should be clearly mentioned, that "return value of 127" applies to result of WEXITSTATUS() or something (termination status for a program), not to return value of system() itself. Fix: man from OpenBSD, for example: RETURN VALUES If a child process cannot be created, or the termination status of the shell cannot be obtained, system() returns -1 and sets errno to indicate the error. If execution of the shell fails, system() returns the termi- nation status for a program that terminates with a call of exit(127). How-To-Repeat: man 3 system read section "RETURN VALUES"
Responsible Changed From-To: freebsd-doc->gjb I'll take this.
Responsible Changed From-To: gjb->freebsd-doc Back to the pool for now due to lack of time.
Responsible Changed From-To: freebsd-doc->eadler I'll take it.
Responsible Changed From-To: eadler->freebsd-doc I won't be getting to this any time soon
Responsible Changed From-To: freebsd-doc->Take
Responsible Changed From-To: Take->joel Take
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped