Blame SOURCES/ksh-20120801-forkbomb.patch

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