mirror of
https://github.com/opnsense/src.git
synced 2026-05-14 10:13:48 -04:00
Casper services expect that the first 3 descriptors (stdin/stdout/stderr)
will point to /dev/null. Which Casper will ensure later. The Casper
services are forked from the original process. If the initial process
closes one of those descriptors, Casper may reuse one of them for it on
purpose. If this is the case, then renumarate the descriptors used by
Casper to higher numbers. This is done already after the fork, so it
doesn't break the parent process.
PR: 255339
Reported by: Borja Marcos <borjam (at) sarenet.es>
Tested by: jkim@
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| libcasper | ||
| services | ||
| tests | ||
| Makefile | ||
| Makefile.inc | ||