Re: fork: out of memory

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 26 Nov 1997 15:22:17 +0000 (GMT)


> > if(blah->files[n]!=NULL && /* other CPU swaps here *.
> > blah->files[n]...)
>
> If this is a "read" access to the array, then there is no problem: the
> new array should be identical (it's just been memcpy-ed).

Not if its just been reallocated. As I deref blah->files you can move it
and give it away