diff options
author | Denis Vlasenko | 2007-10-07 18:02:52 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-10-07 18:02:52 +0000 |
commit | 41770226bb39760039df4e9b580570063bcc1c7c (patch) | |
tree | bce7a5ca851fef1e10139938d8d093807373eb1f /shell | |
parent | f545be083d3e9758b70edf16aa532528cd7ce108 (diff) | |
download | busybox-41770226bb39760039df4e9b580570063bcc1c7c.zip busybox-41770226bb39760039df4e9b580570063bcc1c7c.tar.gz |
ash: revert "cat | jobs" fix, it causes more problems than good
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c index 9d8b83c..8b21e65 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -4380,6 +4380,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) @@ -4424,15 +4425,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; } |