[asterisk-bugs] [Asterisk 0016178]: res_pktccops.c using MSG_NOSIGNAL

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 4 06:07:01 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16178 
====================================================================== 
Reported By:                oej
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16178
Category:                   Resources/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 227544 
Request Review:              
====================================================================== 
Date Submitted:             2009-11-04 02:13 CST
Last Modified:              2009-11-04 06:07 CST
====================================================================== 
Summary:                    res_pktccops.c using MSG_NOSIGNAL
Description: 
MSG_NOSIGNAL doesn't exist on OS/X

According to
http://lists.apple.com/archives/macnetworkprog/2002/Dec/msg00091.html OS/X
has "the socket option SO_NOSIGPIPE that prevents SIGPIPE from being raised
when a write fails on a socket to which there is no reader; instead the
write to the socket returns with the error EPIPE."


====================================================================== 

---------------------------------------------------------------------- 
 (0113103) oej (manager) - 2009-11-04 06:07
 https://issues.asterisk.org/view.php?id=16178#c113103 
---------------------------------------------------------------------- 
Found more information claiming that MSG_NOSIGNAL is not posix compliant
and doesn't exist in BSD

http://lists.policyd.org/pipermail/devel/2007-September/000468.html

However the man page for send() on FreeBSD includes it.
 #define MSG_NOSIGNAL    0x20000 /* do not generate SIGPIPE on EOF */

The man page for OS/X Snow leopard only include two flags for send():

----
     The flags parameter may include one or more of the following:

     #define MSG_OOB        0x1  /* process out-of-band data */
     #define MSG_DONTROUTE  0x4  /* bypass routing, use direct interface
*/


---- 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-04 06:07 oej            Note Added: 0113103                          
======================================================================




More information about the asterisk-bugs mailing list