Page MenuHomeFreeBSD

reboot: Use posix_spawn instead of system
ClosedPublic

Authored by imp on Feb 13 2024, 4:50 AM.
Tags
None
Referenced Files
F83184482: D43860.diff
Tue, May 7, 10:55 AM
F83136151: D43860.id134408.diff
Mon, May 6, 7:53 PM
Unknown Object (File)
Sat, May 4, 1:17 PM
Unknown Object (File)
Fri, Apr 26, 9:04 PM
Unknown Object (File)
Fri, Apr 26, 3:24 AM
Unknown Object (File)
Sun, Apr 14, 5:39 PM
Unknown Object (File)
Mon, Apr 8, 1:48 PM
Unknown Object (File)
Mar 31 2024, 1:11 PM
Subscribers

Details

Summary

Use posix_spawn to avoid having to allocate memory needed for the system
command line.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Feb 13 2024, 4:50 AM
imp created this revision.
sbin/reboot/reboot.c
76

Shouldn't there only be one copy?

94–110

Check return value? Especially for EINTR.

104–106

Would seem more natural to flip these two cases?

sbin/reboot/reboot.c
76

Oh, yes.

94–110

Should we look on EINTR? Or just ignore it?

104–106

sure.

This revision is now accepted and ready to land.Feb 15 2024, 11:17 PM
This revision was automatically updated to reflect the committed changes.