components/desktop/pidgin/patches/pidgin-20-fix-sigalrm.patch
changeset 7277 a51b37054c45
parent 7276 eae106639cae
child 7278 89aa34de7ca6
equal deleted inserted replaced
7276:eae106639cae 7277:a51b37054c45
     1 The sighandler() function in pidgin/gtkmain.c doesn't restore a SIGALRM
       
     2 handler.
       
     3 
       
     4 See: https://developer.pidgin.im/ticket/7902
       
     5 
       
     6 This was closed as fixed, but that doesn't seem to be the case.
       
     7 
       
     8 --- pidgin-2.11.0/pidgin/gtkmain.c.orig	2016-08-25 15:00:41.875707111 +0000
       
     9 +++ pidgin-2.11.0/pidgin/gtkmain.c	2016-08-25 15:02:50.909744713 +0000
       
    10 @@ -229,13 +229,17 @@
       
    11  		alarm(1);
       
    12  		break;
       
    13  	case SIGALRM:
       
    14 +		clean_pid();
       
    15 +		/* Restore signal catching */
       
    16 +		signal(SIGALRM, sighandler);
       
    17 +		break;
       
    18  #else
       
    19  	case SIGCHLD:
       
    20 -#endif
       
    21  		clean_pid();
       
    22  		/* Restore signal catching */
       
    23  		signal(SIGCHLD, sighandler);
       
    24  		break;
       
    25 +#endif
       
    26  	default:
       
    27  		purple_debug_warning("sighandler", "Caught signal %d\n", sig);
       
    28  		purple_core_quit();