[OpenSIPS-Devel] [ opensips-Bugs-2955212 ] Fix signal handler
SourceForge.net
noreply at sourceforge.net
Sun Aug 1 21:43:14 CEST 2010
Bugs item #2955212, was opened at 2010-02-19 23:57
Message generated for change (Comment added) made by bogdan_iancu
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: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Markus Elfring (elfring)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-08-01 22:43
Message:
Hi Markus,
That is harmless in the shutdown context.
Regards,
Bogdan
----------------------------------------------------------------------
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