Re: sigaction, fork, malloc, and futex
From: Zan Lynx
Date: Thu May 06 2004 - 17:25:43 EST
On Thu, 2004-05-06 at 15:37, Steve Beaty wrote:
> > I am not sure it is really a problem though. I don't think you should
> > be allowed to fork inside a signal handler. That seems very wrong.
>
> i can't disagree :-) but fork() is supposed to be reentrant...
In your test program, I just tried using sys_clone to fork the process
directly. It works. The problem really is inside glibc. If glibc is
not POSIX compliant in this instance, I suppose you will have to file a
bug with them.
--
Zan Lynx <zlynx@xxxxxxx>
Attachment:
signature.asc
Description: This is a digitally signed message part