Page MenuHomeFreeBSD

system(3): Clarify return values
ClosedPublic

Authored by des on Feb 24 2026, 1:44 PM.
Tags
None
Referenced Files
F161813093: D55483.diff
Tue, Jul 7, 2:07 AM
Unknown Object (File)
Sat, Jul 4, 4:42 AM
Unknown Object (File)
Thu, Jul 2, 12:55 PM
Unknown Object (File)
Sun, Jun 28, 9:16 PM
Unknown Object (File)
Sat, Jun 27, 12:08 AM
Unknown Object (File)
Thu, Jun 25, 5:16 AM
Unknown Object (File)
Fri, Jun 19, 12:05 AM
Unknown Object (File)
Jun 4 2026, 3:59 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