]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/exec-util.c
process-util: rework wait_for_terminate_and_warn() to take a flags parameter
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Dec 2017 23:51:19 +0000 (00:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:27 +0000 (13:27 +0100)
commit7d4904fe7a14852c1469a55ec1dfdf747d829cb1
tree0436ef0382c15c9e020ec110dde9d79c44342517
parentb6e1fff13dbfc1623de41b78bc525f410fb59b91
process-util: rework wait_for_terminate_and_warn() to take a flags parameter

This renames wait_for_terminate_and_warn() to
wait_for_terminate_and_check(), and adds a flags parameter, that
controls how much to log: there's one flag that means we log about
abnormal stuff, and another one that controls whether we log about
non-zero exit codes. Finally, there's a shortcut flag value for logging
in both cases, as that's what we usually use.

All callers are accordingly updated. At three occasions duplicate logging
is removed, i.e. where the old function was called but logged in the
caller, too.
18 files changed:
src/basic/exec-util.c
src/basic/process-util.c
src/basic/process-util.h
src/core/shutdown.c
src/core/socket.c
src/delta/delta.c
src/import/import-tar.c
src/import/pull-common.c
src/import/pull-tar.c
src/login/inhibit.c
src/nspawn/nspawn-setuid.c
src/nspawn/nspawn.c
src/partition/makefs.c
src/quotacheck/quotacheck.c
src/sulogin-shell/sulogin-shell.c
src/systemctl/systemctl.c
src/test/test-seccomp.c
src/vconsole/vconsole-setup.c