summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-07 02:34:35 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-07 02:34:35 +0200
commit1968a360405e302d4d2c2abc03a3314f81375156 (patch)
treef10a4bdb7cdded00fb749a35f41301989d3e7ecb /src/util.c
parent8092a428d40ac682df9e80c36988043854579679 (diff)
cgls: add pager support to systemd-cgls
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 356b4f9de2..a0fbdc517e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3866,8 +3866,12 @@ char *normalize_env_assignment(const char *s) {
}
int wait_for_terminate(pid_t pid, siginfo_t *status) {
+ siginfo_t dummy;
+
assert(pid >= 1);
- assert(status);
+
+ if (!status)
+ status = &dummy;
for (;;) {
zero(*status);