From: Michal Schmidt Date: Wed, 16 Nov 2011 22:45:01 +0000 (+0100) Subject: execute: avoid logging to closed fds X-Git-Tag: v38~191 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=4d8a7798e7f12c6400495cbc4d0ad57ed20ce90a;hp=4d8a7798e7f12c6400495cbc4d0ad57ed20ce90a;p=elogind.git execute: avoid logging to closed fds Several functions called from the "sd(EXEC)" process try to log messages when all the file descriptors are already closed, including the logging ones. The logging functions do not expect their fds to be closed and they hit an assertion failure. The failure wants to be logged too, so there is an infinite recursion, ended by a SIGSEGV. When we close all fds, we must let log.c know about it. ---