Systemd/src/coredump
Lennart Poettering 0b1f3c768c tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children
In a number of occasions we use FORK_CLOSE_ALL_FDS when forking off a
child, since we don't want to pass fds to the processes spawned (either
because we later want to execve() some other process there, or because
our child might hang around for longer than expected, in which case it
shouldn't keep our fd pinned). This also closes any logging fds, and
thus means logging is turned off in the child. If we want to do proper
logging, explicitly reopen the logs hence in the child at the right
time.

This is particularly crucial in the umount/remount children we fork off
the shutdown binary, as otherwise the children can't log, which is
why #8155 is harder to debug than necessary: the log messages we
generate about failing mount() system calls aren't actually visible on
screen, as they done in the child processes where the log fds are
closed.
2018-02-22 00:35:00 +01:00
..
coredump-vacuum.c coredump,journal: when vacuuming use new unlinkat_deallocate() calls 2018-02-12 11:27:11 +01:00
coredump-vacuum.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
coredump.c tree-wide: make use of fsync_directory_of_file() all over the place 2018-02-20 15:39:31 +01:00
coredump.conf build-sys: move coredump logic into subdir of its own 2016-02-10 14:32:27 +01:00
coredumpctl.c tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children 2018-02-22 00:35:00 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
stacktrace.c tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
stacktrace.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-coredump-vacuum.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00