]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: when deserializing a unit, fully restore its cgroup state 5619/head
authorFranck Bui <fbui@suse.com>
Mon, 27 Mar 2017 16:00:54 +0000 (18:00 +0200)
committerFranck Bui <fbui@suse.com>
Thu, 4 May 2017 07:41:23 +0000 (09:41 +0200)
commit8b108bd0ef46f05fa7938abc787e919249459874
tree8dfbb5a31724cf7b3c67d246180ec997ae6b180c
parentaae7e17f9c50015789ccc18a2b8d177730f2d2be
core: when deserializing a unit, fully restore its cgroup state

The state of a unit was not fully restored, especially the
"cgroup_realized_mask/cgroup_enabled_mask" fields were missing.

This could be seen with the following sequence:

 $ systemctl show -p TasksCurrent sshd
 TasksCurrent=1

 $ systemctl daemon-reload

 $ systemctl show -p TasksCurrent sshd
 TasksCurrent=18446744073709551615

This was also visible with the "status" command: "Tasks: " row wasn't
showed in status of a service after a "daemon-reload" command.
src/core/unit.c