Page MenuHomeFreeBSD

system(3): Clarify return values
ClosedPublic

Authored by des on Feb 24 2026, 1:44 PM.
Tags
None
Referenced Files
F169079201: D55483.id.diff
Mon, Aug 31, 8:48 AM
F168902030: D55483.id172710.diff
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
Unknown Object (File)
Wed, Aug 19, 5:19 AM
Unknown Object (File)
Wed, Aug 19, 4:47 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