diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-03-23 06:08:36 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-03-23 06:08:36 +0000 |
commit | e538ab09fe8139da507eeab044243a79e6bf9ba2 (patch) | |
tree | e46b8c9f44f55d91155649d01ed12a1558606914 /pjlib/src/pj/sock_bsd.c | |
parent | cc4a3ae0cbdb2d86ce6480d030006c9592375baa (diff) |
Fixed #1221: Crash when SIP transport tried to write to a broken pipe.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3478 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/sock_bsd.c')
-rw-r--r-- | pjlib/src/pj/sock_bsd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pjlib/src/pj/sock_bsd.c b/pjlib/src/pj/sock_bsd.c index 47e3fd14..4dbdc5c6 100644 --- a/pjlib/src/pj/sock_bsd.c +++ b/pjlib/src/pj/sock_bsd.c @@ -135,6 +135,11 @@ const pj_uint16_t PJ_SO_RCVBUF = SO_RCVBUF; const pj_uint16_t PJ_SO_SNDBUF = SO_SNDBUF; const pj_uint16_t PJ_TCP_NODELAY= TCP_NODELAY; const pj_uint16_t PJ_SO_REUSEADDR= SO_REUSEADDR; +#ifdef SO_NOSIGPIPE +const pj_uint16_t PJ_SO_NOSIGPIPE = SO_NOSIGPIPE; +#else +const pj_uint16_t PJ_SO_NOSIGPIPE = 0xFFFF; +#endif #if defined(SO_PRIORITY) const pj_uint16_t PJ_SO_PRIORITY = SO_PRIORITY; #else |