unit/auto
Andrew Clayton d98a1b0dd7 Enable the PR_SET_CHILD_SUBREAPER prctl(2) option on Linux.
This prctl(2) option can be used to set the "child subreaper" attribute
of the calling process.  This allows a process to take on the role of
'init', which means the process will inherit descendant processes when
their immediate parent terminates.

This will be used in an upcoming commit that uses a double fork(2) +
unshare(2) to create a new PID namespace.  The parent from the second
fork will terminate leaving the child process to be inherited by 'init'.
Aside from it being better to maintain the parent/child relationships
between the various unit processes, without setting this you need to ^C
twice to fully quit unit when running in the foreground after the double
fork.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2023-02-17 21:24:18 +00:00
..
cc Using compiler capability to generate dependencies. 2017-12-01 16:28:06 +03:00
echo Fixed displaying "echo" program building failure. 2017-09-22 20:13:55 +03:00
modules Added default values for pathnames. 2023-01-31 23:47:53 +01:00
os Printing version in "./configure" output. 2021-12-03 03:11:06 +03:00
atomic Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
capability Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
cgroup Isolation: wired up cgroup to build system. 2022-12-10 14:00:20 +00:00
clang Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
endian Autodetect endianness. 2023-01-12 17:56:00 +00:00
events Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
feature PHP: fixed building on MacOSX with --ld-opt= option. 2018-05-30 18:31:26 +03:00
files Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
have Initial version. 2017-01-17 20:00:00 +03:00
help Added default values for pathnames. 2023-01-31 23:47:53 +01:00
isolation Enable the PR_SET_CHILD_SUBREAPER prctl(2) option on Linux. 2023-02-17 21:24:18 +00:00
make Added default values for pathnames. 2023-01-31 23:47:53 +01:00
malloc Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
mmap Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
njs Used pkg-config to detect njs where available. 2022-11-29 18:10:38 +04:00
options Added default values for pathnames. 2023-01-31 23:47:53 +01:00
pcre Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
save Added default values for pathnames. 2023-01-31 23:47:53 +01:00
sendfile Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
shmem Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
sockets Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
sources Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS. 2023-02-17 21:24:18 +00:00
ssltls Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
summary Added default values for pathnames. 2023-01-31 23:47:53 +01:00
test_build Initial version. 2017-01-17 20:00:00 +03:00
threads Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
time Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
types Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00
unix Fixed main() prototypes in auto tests. 2022-10-28 03:17:31 +01:00