diff options
author | Oleksii Shevchuk <alxchk@gmail.com> | 2013-02-14 00:49:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-01 15:11:35 +0100 |
commit | bf6dcfa6a79a459239799a21bdcba115d696a006 (patch) | |
tree | 2df71621bb582c5d800305a494e3d5c0cfed22ee /src/fstab-generator/fstab-generator.c | |
parent | 92094b75fb8629492cddab1677a29830a7d96811 (diff) |
unit: fix the race in deserialization.
unit_notify is fired in deserelization code (particulary in
service_set_state). Units passed in random order, and there is possibility,
that unit with StopWhenUnneeded=yes passed before it actual dependecies. In
that case unit will be stopped as unneeded, because deps in UNIT_INACTIVE state
yet.
So, reuse similar logic (unit.c:1421) to avoid this race
Diffstat (limited to 'src/fstab-generator/fstab-generator.c')
0 files changed, 0 insertions, 0 deletions