I'm trapping sigterm and then waiting for user input on stdin.
When I pkill the process it does successfully ignore the signal. But when I hit enter to continue .wait() returns None even though I believe that should have been caught as a pending signal.
.wait() does return the signal if i call .wait() with a timeout and pkill while it waits. with a timeout and pkill during the timeout.
Is this intentional?
I'm trapping sigterm and then waiting for user input on stdin.
When I pkill the process it does successfully ignore the signal. But when I hit enter to continue .wait() returns None even though I believe that should have been caught as a pending signal.
.wait() does return the signal if i call .wait() with a timeout and pkill while it waits. with a timeout and pkill during the timeout.
Is this intentional?