Page MenuHomeFreeBSD

system(3): Clarify return values
ClosedPublic

Authored by des on Tue, Feb 24, 1:44 PM.
Tags
None
Referenced Files
F146419066: D55483.id172584.diff
Mon, Mar 2, 1:19 PM
Unknown Object (File)
Sun, Mar 1, 2:24 PM
Unknown Object (File)
Sun, Mar 1, 7:11 AM
Unknown Object (File)
Sun, Mar 1, 3:33 AM
Unknown Object (File)
Sun, Mar 1, 2:25 AM
Unknown Object (File)
Fri, Feb 27, 7:10 AM
Unknown Object (File)
Fri, Feb 27, 12:11 AM
Unknown Object (File)
Thu, Feb 26, 4:57 AM
Subscribers

Details

Summary

Our manual page currently states that system() will return 127 if it
fails to execute the shell. The actual return value is, to quote POSIX,
“as if the command language interpreter had terminated using exit(127)
or _exit(127)”.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable