summaryrefslogtreecommitdiff
path: root/src/shared/log.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-09 20:08:55 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-11 19:14:47 -0500
commit4daf54a851e4fb7ed1a13c3117bba12528fd2c7f (patch)
treedd9db902bc6e5500bd2b5784714b4052265f0cf4 /src/shared/log.h
parentc480d2f8bc63565e40bd969054ebd97e9e2deca6 (diff)
journald: log provenience of signals
Diffstat (limited to 'src/shared/log.h')
-rw-r--r--src/shared/log.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/log.h b/src/shared/log.h
index 3dcfa11308..6a0f6735c5 100644
--- a/src/shared/log.h
+++ b/src/shared/log.h
@@ -21,9 +21,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <syslog.h>
#include <stdbool.h>
#include <stdarg.h>
+#include <syslog.h>
+#include <sys/signalfd.h>
#include <errno.h>
#include "macro.h"
@@ -167,3 +168,5 @@ const char *log_target_to_string(LogTarget target) _const_;
LogTarget log_target_from_string(const char *s) _pure_;
#define MESSAGE_ID(x) "MESSAGE_ID=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(x)
+
+void log_received_signal(int level, const struct signalfd_siginfo *si);