mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
ash: fix SEGV in forkchild (jp can be NULL). here documents were affected.
This commit is contained in:
parent
de1c8b2e92
commit
d4293c77f1
@ -4424,6 +4424,7 @@ forkchild(struct job *jp, union node *n, int mode)
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user