freebsd-src/lib/libcasper
Mariusz Zaborski aa310ebfba libcasper: fix descriptors numbers
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:		225343
Reported by:	Borja Marcos <borjam (at) sarenet.es>
Tested by:	jkim@
2021-06-10 12:41:29 +02:00
..
libcasper libcasper: fix descriptors numbers 2021-06-10 12:41:29 +02:00
services libcasper: Create a minimal cap_netdb service 2021-06-05 08:36:53 -04:00
tests TESTSDIR isn't required; remove it 2017-08-13 01:08:37 +00:00
Makefile libcasper/services: include <src.opts.mk> to hook tests to build 2019-10-23 01:50:41 +00:00
Makefile.inc Introduce caspermocks. 2017-10-28 19:23:57 +00:00