from system(3) man page
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
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.
man from OpenBSD, for example:
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"
I'll take this.
Back to the pool for now due to lack of time.
I'll take it.
I won't be getting to this any time soon
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