]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/pty-session: make wait_child callback optional
authorKarel Zak <kzak@redhat.com>
Mon, 7 Oct 2019 10:24:43 +0000 (12:24 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:54 +0000 (13:11 +0200)
commitbdd43357062e7c84a4c9d60516c0f4cb28aedf1d
tree412950bd9a68101ca49567dacea49d0fbbaada93
parentec10634e7ec41c05865f04aa8a62ec854dd66b9d
lib/pty-session: make wait_child callback optional

Now the code is duplicate on many places, but all we usually need is to
remember child status. It seems good enough to have very simple
callback child_die() to inform application about a change.

The patch also add PID to all signal related callbacks.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pty-session.h
lib/pty-session.c
login-utils/su-common.c
term-utils/script.c
term-utils/scriptlive.c
term-utils/scriptreplay.c