chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:51 +0000 (07:49 +0200)
commited4c3116dde259feafce15e05a9360f5debb0386
treece8c8925cdbb4d25cb81e568ccc3caa884242e95
parent093bfffb485caf4d1d328e9585641005029a83d9
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.
src/basic/exec-util.c
src/basic/process-util.c
src/basic/process-util.h
src/login/inhibit.c