]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
core: only process one of READY=1, STOPPING=1 or RELOADING=1 in sd_notify() handling
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2017 17:14:20 +0000 (18:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Nov 2017 16:01:00 +0000 (17:01 +0100)
commitcc2b7b11b45f82fb881ac788ec2203c632677f90
tree6a2c340d4f32f56a21dfeb7e90b220bd069e0b56
parentc45d11cb30419959f2f5537bc4f0fa735e38b7a3
core: only process one of READY=1, STOPPING=1 or RELOADING=1 in sd_notify() handling

Of course, it's not really a valid sd_notify() message if multiple of
these fields are used in one, but let's handle this somewhat gracefully,
by only processing one of them, and ignoring the rest.
src/core/service.c
src/systemd/sd-daemon.h