[BusyBox] Race condition with tar zxf
Glenn McGrath
bug1 at optushome.com.au
Wed Mar 28 09:20:56 UTC 2001
Robert Kaiser wrote:
>
> >
> > The gz_open code is mostly taken from tar anyway, i think the forking
> > code for accessing a decompressed stream of data really should go in the
> > gunzip.c rather than in applets prior to calling unzip.
>
> Agreed. But where do you want put the SIGCHLD handler that is currently in tar ?
> If you think that it is really necessary (which I'm still not convinced of),
> please make sure that it does not just unconditionally exit the parent process
> (see the first of my patches).
>
The changes ive put into cvs now disable signal handling and allow the
parent process to kill the child when required, so there shouldnt be a
race condition.
I hope this fixes your situation as its a bug that has come up before,
but i wasnt to confident with signals, so wasnt really sure about the
best aproach to the problem.
Glenn
More information about the busybox
mailing list