Page MenuHomeFreeBSD

system(3): Clarify return values
ClosedPublic

Authored by des on Feb 24 2026, 1:44 PM.
Tags
None
Referenced Files
F169489033: D55483.id172710.diff
Tue, Sep 1, 4:45 PM
Unknown Object (File)
Mon, Aug 31, 10:18 AM
Unknown Object (File)
Mon, Aug 31, 8:48 AM
Unknown Object (File)
Sun, Aug 30, 4:35 PM
Unknown Object (File)
Sat, Aug 29, 2:15 PM
Unknown Object (File)
Sat, Aug 29, 1:43 PM
Unknown Object (File)
Sat, Aug 29, 9:10 AM
Unknown Object (File)
Thu, Aug 27, 6:16 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