opnsense-src/lib/libcasper/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.3 capser: add cap_net to the list of services 2021-01-03 16:55:35 +01:00
libcasper.c Fix comments. 2018-10-24 00:17:19 +00:00
libcasper.h casper: convert macros to inline functions 2021-01-12 19:40:45 +01:00
libcasper_impl.c libcasper: fix descriptors numbers 2021-06-10 12:41:29 +02:00
libcasper_impl.h libcasper: fix descriptors numbers 2021-06-10 12:41:29 +02:00
libcasper_service.3 Fix trailing-comma-related typos in the tree when the Xr macro is used 2020-06-27 11:13:45 +00:00
libcasper_service.c libcasper: do not run registered exit functions 2019-01-26 14:10:49 +00:00
libcasper_service.h Introduce channel flags in libcasper. 2018-02-17 12:22:29 +00:00
Makefile pkgbase: Move libcap_ to FreeBSD-runtime 2019-09-05 14:10:26 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
service.c libcasper: fix descriptors numbers 2021-06-10 12:41:29 +02:00
zygote.c libcasper: fix descriptors numbers 2021-06-10 12:41:29 +02:00
zygote.h Add SPDX tags for libcasper(3) and services. 2018-01-27 12:55:34 +00:00