Tags: patch Note that it does a "kill(0,thesignal)" so would kill the parent and every other process in its process group.
diff -ur posh/main.c posh-0.12.6.new/main.c
--- posh/main.c 2015-06-07 19:23:37.000000000 +0100
+++ posh-0.12.6.new/main.c 2018-01-07 10:28:02.113320678 +0000
@@ -637,7 +637,7 @@
if (sig == SIGINT || sig == SIGTERM) {
setsig(&sigtraps[sig], SIG_DFL,
SS_RESTORE_CURR|SS_FORCE);
- kill(0, sig);
+ kill(getpid(), sig);
}
}
#ifdef MEM_DEBUG

