Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not restart a child when it gets some term sig.
Vsevolod Stakhov committed 12 years ago
commit 74a509c129eae7d4a7e3b8510d3abf5082dabb99
parent f710369
1 file changed +4 -0
modified src/main.c
@@ -444,6 +444,10 @@ start_process_worker(void)

			if (WIFEXITED(status) && ret != EX_NEEDRESTART)
				break;
+
			if (WIFSIGNALED(status)) {
+
				/* Process got some terminating signal, hence stop the loop */
+
				break;
+
			}
		}
	}