Re: sigaction, fork, malloc, and futex

From: Steve Beaty
Date: Thu May 06 2004 - 16:49:14 EST


> Uhh... just read that POSIX actually allows that. Evil!
> I guess you're entering undiscovered land...

it's funny how often i am there :-) :-)

> No fprintf and exit in a signal handler! Use write and _exit instead.

doesn't seem to matter...

> This exit is dubious too. _exit is better.

nor does this... i know better than to use *printf and exit; i was
eager to get other's views on this...

> Good luck, you may need it - ET.

i do! :-) the code seems to work on Ultrix, Solaris, and OSX.
this doesn't imply that it should :-)

--
Dr. Steve Beaty (B80) Associate Professor
Metro State College of Denver beaty@xxxxxxxxxxxxxx
VOX: (303) 556-5321 Science Building 134C
FAX: (303) 556-5381 http://clem.mscd.edu/~beatys/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/