Blame SOURCES/ksh-20120801-forkbomb.patch

61d8f4
diff -up ksh-20120801/src/cmd/ksh93/sh/fault.c.forkbomb ksh-20120801/src/cmd/ksh93/sh/fault.c
61d8f4
--- ksh-20120801/src/cmd/ksh93/sh/fault.c.forkbomb	2013-04-30 16:20:40.237490109 +0200
61d8f4
+++ ksh-20120801/src/cmd/ksh93/sh/fault.c	2013-04-30 16:21:49.961068778 +0200
61d8f4
@@ -519,7 +519,7 @@ void sh_exit(register int xno)
61d8f4
 	if(pp && pp->mode>1)
61d8f4
 		cursig = -1;
61d8f4
 #ifdef SIGTSTP
61d8f4
-	if(shp->trapnote&SH_SIGTSTP)
61d8f4
+	if((shp->trapnote&SH_SIGTSTP) && job.jobcontrol)
61d8f4
 	{
61d8f4
 		/* ^Z detected by the shell */
61d8f4
 		shp->trapnote = 0;