nested alarm signals (fwd)

Eugene Tsyrklevich eugene at securityarchitects.com
Thu Jun 15 21:52:06 CDT 2000


~sdpm~
> > Even if there was such a rule for a single process, it
> > seems odd to me that the child process for alarm_die.pl would be
> > affected by the fact that it was run from within an alarm signal
> > handler.
> 
> There are a large number of system calls that are unsafe to make while
> inside a signal handler.  Any attempt to call these may result in
> incorrect, undefined, or otherwise disastrous behavior.  I was looking
> for a complete list, but failed to find one.  However, I'm certain that
> among them are: fork, exec, read, and write.


POSIX.1 requires all of the above functions to be reentrant. Thus you can use them in your signal handlers.
see 'Advanced Programming in the Unix Environment' page 278


Also check out
http://www.perl.com/pub/doc/manual/html/pod/perlfunc/alarm.html


cheers.
~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list