svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Sun Oct 7 18:02:53 UTC 2007


Author: vda
Date: 2007-10-07 11:02:52 -0700 (Sun, 07 Oct 2007)
New Revision: 20194

Log:
ash: revert "cat | jobs" fix, it causes more problems than good



Modified:
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2007-10-07 17:22:56 UTC (rev 20193)
+++ trunk/busybox/shell/ash.c	2007-10-07 18:02:52 UTC (rev 20194)
@@ -4380,6 +4380,7 @@
 
 /* Lives far away from here, needed for forkchild */
 static void closescript(void);
+
 /* Called after fork(), in child */
 static void
 forkchild(struct job *jp, union node *n, int mode)
@@ -4424,15 +4425,8 @@
 		setsignal(SIGQUIT);
 		setsignal(SIGTERM);
 	}
-#if JOBS
-	/* For "jobs | cat" to work like in bash, we must retain list of jobs
-	 * in child, but we do need to remove ourself */
-	if (jp)
-		freejob(jp);
-#else
 	for (jp = curjob; jp; jp = jp->prev_job)
 		freejob(jp);
-#endif
 	jobless = 0;
 }
 




More information about the busybox-cvs mailing list