Ignore:
Timestamp:
Mar 23, 2011 6:08:36 AM (11 years ago)
Author:
ming
Message:

Fixed #1221: Crash when SIP transport tried to write to a broken pipe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/main.c

    r2892 r3478  
    6767} 
    6868 
     69static void setup_socket_signal() 
     70{ 
     71} 
     72 
    6973#else 
     74#include <signal.h> 
    7075 
    7176static void setup_signal_handler(void) 
    7277{ 
     78} 
     79 
     80static void setup_socket_signal() 
     81{ 
     82    signal(SIGPIPE, SIG_IGN); 
    7383} 
    7484 
     
    7787int main(int argc, char *argv[]) 
    7888{ 
     89    setup_socket_signal(); 
     90 
    7991    do { 
    8092        app_restart = PJ_FALSE; 
Note: See TracChangeset for help on using the changeset viewer.