Systemd/src/import
Lennart Poettering 4c253ed1ca tree-wide: introduce new safe_fork() helper and port everything over
This adds a new safe_fork() wrapper around fork() and makes use of it
everywhere. The new wrapper does a couple of things we previously did
manually and separately in a safer, more correct and automatic way:

1. Optionally resets signal handlers/mask in the child

2. Sets a name on all processes we fork off right after forking off (and
   the patch assigns useful names for all processes we fork off now,
   following a systematic naming scheme: always enclosed in () – in order
   to indicate that these are not proper, exec()ed processes, but only
   forked off children, and if the process is long-running with only our
   own code, without execve()'ing something else, it gets am "sd-" prefix.)

3. Optionally closes all file descriptors in the child

4. Optionally sets a PR_SET_DEATHSIG to SIGTERM in the child, in a safe
   way so that the parent dying before this happens being handled
   safely.

5. Optionally reopens the logs

6. Optionally connects stdin/stdout/stderr to /dev/null

7. Debug logs about the forked off processes.
2017-12-25 11:48:21 +01:00
..
curl-util.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
curl-util.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-raw.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-tar.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
export.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-common.c tree-wide: introduce new safe_fork() helper and port everything over 2017-12-25 11:48:21 +01:00
import-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-compress.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-compress.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-pubring.gpg import: add image verification using gpg 2015-01-21 04:03:54 +01:00
import-raw.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
import-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-tar.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
importd.c tree-wide: introduce new safe_fork() helper and port everything over 2017-12-25 11:48:21 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
org.freedesktop.import1.conf Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
org.freedesktop.import1.policy.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
org.freedesktop.import1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
pull-common.c tree-wide: introduce new safe_fork() helper and port everything over 2017-12-25 11:48:21 +01:00
pull-common.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-job.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-job.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-raw.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
pull-raw.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-tar.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull-tar.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
pull.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
qcow2-util.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
qcow2-util.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-qcow2.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00