diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-07-06 00:47:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-07-06 00:47:42 +0200 |
commit | a75560529663e5fd055884e32ab9c73f47f8aaa5 (patch) | |
tree | 38a52e5176648f51ed823616c4316ed0e2fa1fe6 /src/service.c | |
parent | 38a285d776cc0bf4440efe79fc7691032bcf3d67 (diff) |
manager: merge serialization and desrialization counter into one, and increase it when reexecuting
Instead of having individual counters n_serializing and n_deserializing
have a single one n_reloading, which should be sufficient.
Set n_reloading when we are about to go down for reexecution to avoid
cgroup trimming when we free the units for reexecution.
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 5c7e62f3b0..b684a37cd7 100644 --- a/src/service.c +++ b/src/service.c @@ -1496,7 +1496,7 @@ static void service_set_state(Service *s, ServiceState state) { /* For the inactive states unit_notify() will trim the cgroup, * but for exit we have to do that ourselves... */ - if (state == SERVICE_EXITED && s->meta.manager->n_deserializing <= 0) + if (state == SERVICE_EXITED && s->meta.manager->n_reloading <= 0) cgroup_bonding_trim_list(s->meta.cgroup_bondings, true); if (old_state != state) |