summaryrefslogtreecommitdiff
path: root/src/core
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/core
parent6482f6269c87d2249e52e889a63adbdd50f2d691 (diff)
shared: add process-util.[ch]
Diffstat (limited to 'src/core')
-rw-r--r--src/core/automount.c1
-rw-r--r--src/core/cgroup.c1
-rw-r--r--src/core/execute.c1
-rw-r--r--src/core/killall.c1
-rw-r--r--src/core/machine-id-setup.c1
-rw-r--r--src/core/main.c1
-rw-r--r--src/core/manager.c1
-rw-r--r--src/core/service.c1
-rw-r--r--src/core/shutdown.c1
-rw-r--r--src/core/unit.c1
10 files changed, 10 insertions, 0 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index e1ca2a48ca..ce484ff1cd 100644
--- a/src/core/automount.c
+++ b/src/core/automount.c
@@ -41,6 +41,7 @@
#include "bus-util.h"
#include "bus-error.h"
#include "formats-util.h"
+#include "process-util.h"
static const UnitActiveState state_translation_table[_AUTOMOUNT_STATE_MAX] = {
[AUTOMOUNT_DEAD] = UNIT_INACTIVE,
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 6b8abb4802..e337c0fd13 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -22,6 +22,7 @@
#include <fcntl.h>
#include <fnmatch.h>
+#include "process-util.h"
#include "path-util.h"
#include "special.h"
#include "cgroup-util.h"
diff --git a/src/core/execute.c b/src/core/execute.c
index c87e9004bb..b00d510419 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -77,6 +77,7 @@
#include "bus-endpoint.h"
#include "cap-list.h"
#include "formats-util.h"
+#include "process-util.h"
#ifdef HAVE_APPARMOR
#include "apparmor-util.h"
diff --git a/src/core/killall.c b/src/core/killall.c
index 504051467d..31bec01bbf 100644
--- a/src/core/killall.c
+++ b/src/core/killall.c
@@ -28,6 +28,7 @@
#include "killall.h"
#include "set.h"
#include "formats-util.h"
+#include "process-util.h"
#define TIMEOUT_USEC (10 * USEC_PER_SEC)
diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c
index 2ffb2a7aa6..e083c5b347 100644
--- a/src/core/machine-id-setup.c
+++ b/src/core/machine-id-setup.c
@@ -36,6 +36,7 @@
#include "virt.h"
#include "fileio.h"
#include "path-util.h"
+#include "process-util.h"
static int shorten_uuid(char destination[34], const char source[36]) {
unsigned i, j;
diff --git a/src/core/main.c b/src/core/main.c
index 5d1aed8d3f..80a51ee2e5 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -73,6 +73,7 @@
#include "smack-setup.h"
#include "kmod-setup.h"
#include "formats-util.h"
+#include "process-util.h"
static enum {
ACTION_RUN,
diff --git a/src/core/manager.c b/src/core/manager.c
index 1c912fcdf7..6d1729b6e0 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -71,6 +71,7 @@
#include "dbus-manager.h"
#include "bus-kernel.h"
#include "time-util.h"
+#include "process-util.h"
/* Initial delay and the interval for printing status messages about running jobs */
#define JOBS_IN_PROGRESS_WAIT_USEC (5*USEC_PER_SEC)
diff --git a/src/core/service.c b/src/core/service.c
index c6ea6554f0..fa818fc871 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -46,6 +46,7 @@
#include "bus-util.h"
#include "bus-kernel.h"
#include "formats-util.h"
+#include "process-util.h"
static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = {
[SERVICE_DEAD] = UNIT_INACTIVE,
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 70a461e38c..f037a38a0c 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -42,6 +42,7 @@
#include "cgroup-util.h"
#include "def.h"
#include "switch-root.h"
+#include "process-util.h"
#define FINALIZE_ATTEMPTS 50
diff --git a/src/core/unit.c b/src/core/unit.c
index 4b9c406e2e..3aa1bf25f7 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -47,6 +47,7 @@
#include "execute.h"
#include "dropin.h"
#include "formats-util.h"
+#include "process-util.h"
const UnitVTable * const unit_vtable[_UNIT_TYPE_MAX] = {
[UNIT_SERVICE] = &service_vtable,