killing su does not kill subprocess (SIGTERM not propagated)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Problem first appeared in login_4.
Example where the subprocess 115576 has not been terminated:
root@ubuntu:
[1] 115575
root@ubuntu:
root@ubuntu:
pgrep sleep
115576
[1]+ Exit 255 ./su test -c 'sleep 9999'
root@ubuntu:
115576
Expected behavior:
root@ubuntu:
[1] 115503
root@ubuntu:
root@ubuntu:
Session terminated, terminating shell... ...terminated.
...terminated.
[1]+ Exit 143 ./su test -c 'sleep 9999'
root@ubuntu:
Thanks for filing, Radu.
The commit which fixed it is in this PR:
https:/ /github. com/shadow- maint/shadow/ pull/72
(wget https:/ /github. com/shadow- maint/shadow/ pull/72. patch)