Open jpasztor-oi opened 3 years ago
Educated guess: A race condition is involved here: when you press CTRL-C, it gets propagated to all processes in the same process group, so both openconnect-sso
and openconnect
itself handles the interupt signal. "Unfortunately" Python tries to clean-up any running subprrocess but it may already exits when KILL is sent.
I have a proposed fix but don't have the ability to test it right now.
Hm, it will be more tricky to fix this issue than I first thought. If I start the subprocess in a new session, Python won't try to clean it up upon exit and also sudo's behavior will change to always prompt (because it is always executed in a different session).
Hello,
If I abort a running session with C-c, then it throws a traceback during close. It does not cause any harm, but looks ugly.
if you need any further info feel free to ping me :-)