diff options
author | Karel Zak | 2017-09-07 14:19:20 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-18 11:49:11 +0200 |
commit | e9fde3e9004d1661b5229a476cf0cacfb8d0ef4f (patch) | |
tree | bdc015649838b25e4596cb4756c7b7721c589b0c /m4 | |
parent | su: (pty) save child status (diff) | |
download | kernel-qcow2-util-linux-e9fde3e9004d1661b5229a476cf0cacfb8d0ef4f.tar.gz kernel-qcow2-util-linux-e9fde3e9004d1661b5229a476cf0cacfb8d0ef4f.tar.xz kernel-qcow2-util-linux-e9fde3e9004d1661b5229a476cf0cacfb8d0ef4f.zip |
su: (pty) improve SIGSTOP/SIGCONT semantic
We want to use waitpid() only when child is terminated or stopped to
pick up child status, otherwise PTY proxy has to be active. This is
difference between "su" and "su --pty". For "su" we keep parent all
time in waitpid().
It would be possible to use separate code based on signalfd_siginfo,
but it seems better to keep all this stuff on one place -- it means
wait_for_child().
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions