summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-03 23:17:40 +0000
committerDenis Vlasenko2007-11-03 23:17:40 +0000
commitfa3f806cd0730ddc53765f04a846087b99db847a (patch)
treec76e82b7f511a099cb1c107e13de57207926f89b /shell
parent43f0a0bb3a178794ac9fa3f5010db680c5d1b018 (diff)
downloadbusybox-1_7_3.zip
busybox-1_7_3.tar.gz
apply accumulated post 1.7.2 patches; bump version to 1.7.31_7_3
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 46f00dd..02cd6b7 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4379,6 +4379,7 @@ clear_traps(void)
/* 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)
@@ -4423,15 +4424,8 @@ forkchild(struct job *jp, union node *n, int mode)
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;
}