Instead of letting inner shell perform the cleanup, we will fork/execvp and finish the work ourselves. Once an interruption arrives, we wait again and return the exit status code of the inner shell. This idea was suggested by eldritch horrors. Fixes #1020. Co-authored-by: eldritch horrors <pennae@lix.systems> Change-Id: Id38af7ac33874aa1c4b7ca9c6123e3cbd8c3cd8c Signed-off-by: Raito Bezarius <raito@lix.systems>