Help - can anyone explain this segfault?

Help - can anyone explain this segfault?

Shachar Shemesh shachar at shemesh.biz
Fri Jun 19 19:10:33 IDT 2009


Dotan Shavit wrote:
> On Friday 19 June 2009, Shachar Shemesh wrote:
>   
>> help?
>>     
>
> From man vfork:
>
> behavior is undefined if the process created by vfork() returns from the 
> function in which vfork() was called...
>
> #
>   
Well done, you nailed it.

Placing an explicit call to exit for the child process solves the segfault.

Now I can try and find out why this doesn't work with fakeroot-ng.... :-)

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090619/7eebe492/attachment.html>


More information about the Linux-il mailing list