[BusyBox-cvs] busybox/shell ash.c,1.66,1.67

Glenn McGrath bug1 at busybox.net
Mon Jan 6 16:27:10 UTC 2003


Update of /var/cvs/busybox/shell
In directory winder:/tmp/cvs-serv657/shell

Modified Files:
	ash.c 
Log Message:
Minor cleanup, identified by Stewart Brodie, patch by Vladimir N. 
Oleynik


Index: ash.c
===================================================================
RCS file: /var/cvs/busybox/shell/ash.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- ash.c	23 Dec 2002 10:23:10 -0000	1.66
+++ ash.c	6 Jan 2003 16:27:07 -0000	1.67
@@ -5995,13 +5995,10 @@
 				mflag = 0;
 				return;
 			}
-			if (initialpgrp == -1)
-				initialpgrp = getpgrp();
-			else if (initialpgrp != getpgrp()) {
-				killpg(initialpgrp, SIGTTIN);
-				continue;
-			}
-		} while (0);
+			if (initialpgrp == getpgrp())
+				break;
+			killpg(0, SIGTTIN);
+		} while (1);
 		setsignal(SIGTSTP);
 		setsignal(SIGTTOU);
 		setsignal(SIGTTIN);




More information about the busybox-cvs mailing list