summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-30 15:57:39 -0700
committerGitHub <noreply@github.com>2016-06-30 15:57:39 -0700
commitb12cc5b0f80edea3faff644ad6b5c3e87d9d9940 (patch)
treef7b273d828cd4363ef2ab515c7ddf37b1a8af615 /src/core/unit.c
parent2cb623954f9df6bef85bca32933c75737ddc9a88 (diff)
parent36f20ae3b2975e44b6ef17e453ae06a289e9a122 (diff)
Merge pull request #3634 from disneyworldguy/v2sigchld
manager: Only invoke a single sigchld per unit within a cleanup cycle
Diffstat (limited to 'src/core/unit.c')
-rw-r--r--src/core/unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 0a1a5321df..8e5395361d 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -100,6 +100,7 @@ Unit *unit_new(Manager *m, size_t size) {
u->on_failure_job_mode = JOB_REPLACE;
u->cgroup_inotify_wd = -1;
u->job_timeout = USEC_INFINITY;
+ u->sigchldgen = 0;
RATELIMIT_INIT(u->start_limit, m->default_start_limit_interval, m->default_start_limit_burst);
RATELIMIT_INIT(u->auto_stop_ratelimit, 10 * USEC_PER_SEC, 16);