summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-04-10 19:10:00 +0200
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-04-10 23:54:49 +0200
commit0b452006de98294d1690f045f6ea2f7f6630ec3b (patch)
tree852bde2d8fd7dac434636bd25a276b5cf0eece9f /src/journal
parent6482f6269c87d2249e52e889a63adbdd50f2d691 (diff)
shared: add process-util.[ch]
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/coredump.c1
-rw-r--r--src/journal/coredumpctl.c1
-rw-r--r--src/journal/journald-console.c1
-rw-r--r--src/journal/journald-kmsg.c1
-rw-r--r--src/journal/journald-server.c1
-rw-r--r--src/journal/journald-syslog.c1
-rw-r--r--src/journal/journald-wall.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index 4e23e487fb..1c747aa2b4 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -48,6 +48,7 @@
#include "capability.h"
#include "journald-native.h"
#include "coredump-vacuum.h"
+#include "process-util.h"
/* The maximum size up to which we process coredumps */
#define PROCESS_SIZE_MAX ((off_t) (2LLU*1024LLU*1024LLU*1024LLU))
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index 4026a1c26f..4f6ddfae2e 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -37,6 +37,7 @@
#include "journal-internal.h"
#include "compress.h"
#include "sigbus.h"
+#include "process-util.h"
static enum {
ACTION_NONE,
diff --git a/src/journal/journald-console.c b/src/journal/journald-console.c
index 4ccacd7a5f..6c155307c1 100644
--- a/src/journal/journald-console.c
+++ b/src/journal/journald-console.c
@@ -27,6 +27,7 @@
#include "journald-server.h"
#include "journald-console.h"
#include "formats-util.h"
+#include "process-util.h"
static bool prefix_timestamp(void) {
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c
index cb4bc38f2c..e5be7f7766 100644
--- a/src/journal/journald-kmsg.c
+++ b/src/journal/journald-kmsg.c
@@ -32,6 +32,7 @@
#include "journald-kmsg.h"
#include "journald-syslog.h"
#include "formats-util.h"
+#include "process-util.h"
void server_forward_kmsg(
Server *s,
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 7e20b961a9..5e07ce3c49 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -51,6 +51,7 @@
#include "journald-server.h"
#include "acl-util.h"
#include "formats-util.h"
+#include "process-util.h"
#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c
index 6c46a30359..26fdf62acd 100644
--- a/src/journal/journald-syslog.c
+++ b/src/journal/journald-syslog.c
@@ -32,6 +32,7 @@
#include "journald-console.h"
#include "journald-wall.h"
#include "formats-util.h"
+#include "process-util.h"
/* Warn once every 30s if we missed syslog message */
#define WARN_FORWARD_SYSLOG_MISSED_USEC (30 * USEC_PER_SEC)
diff --git a/src/journal/journald-wall.c b/src/journal/journald-wall.c
index b4e07179ac..5298e45be9 100644
--- a/src/journal/journald-wall.c
+++ b/src/journal/journald-wall.c
@@ -23,6 +23,7 @@
#include "journald-server.h"
#include "journald-wall.h"
#include "formats-util.h"
+#include "process-util.h"
void server_forward_wall(
Server *s,