[OpenSIPS-Devel] [ opensips-Bugs-2955212 ] Fix signal handler

SourceForge.net noreply at sourceforge.net
Fri Feb 19 22:57:36 CET 2010


Bugs item #2955212, was opened at 2010-02-19 22:57
Message generated for change (Tracker Item Submitted) made by elfring
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2955212&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.6.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Markus Elfring (elfring)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix signal handler

Initial Comment:
The function "exit()" does not belong to the list of async-signal-safe functions.
See section "2.4.3 Signal Actions" from the document "2.4 Signal Concepts".
http://opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03
http://opengroup.org/onlinepubs/009695399/functions/_Exit.html

Should this call be replaced by a safe alternative in your function "sigterm_handler"?
http://opensips.svn.sourceforge.net/viewvc/opensips/trunk/modules/snmpstats/sub_agent.c?revision=6525&view=markup

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2955212&group_id=232389



More information about the Devel mailing list