]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tty-ask-password-agent/tty-ask-password-agent.c
core: when determining whether a process exit status is clean, consider whether it...
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2016 20:07:30 +0000 (22:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2016 20:57:01 +0000 (22:57 +0200)
commit1f0958f640b87175cd547c1e69084cfe54a22e9d
treee1a49f2a31920394f951f3d14f0e7e06125faab5
parent38107f5a4ad5ab148054910040d5d548a4c7a805
core: when determining whether a process exit status is clean, consider whether it is a command or a daemon

SIGTERM should be considered a clean exit code for daemons (i.e. long-running
processes, as a daemon without SIGTERM handler may be shut down without issues
via SIGTERM still) while it should not be considered a clean exit code for
commands (i.e. short-running processes).

Let's add two different clean checking modes for this, and use the right one at
the appropriate places.

Fixes: #4275
src/basic/exit-status.c
src/basic/exit-status.h
src/core/busname.c
src/core/mount.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/remount-fs/remount-fs.c
src/systemctl/systemctl.c
src/tty-ask-password-agent/tty-ask-password-agent.c