mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
- s/sprintf/snprintf
- updated some po's - fixed crash bug when removing WINDOWS_MENU or WORKSPACE_MENU from rootmenu - some other stuff i forgot
This commit is contained in:
@@ -715,6 +715,12 @@ static char *atomNames[] = {
|
||||
GNUSTEP_TITLEBAR_STATE
|
||||
};
|
||||
|
||||
static void
|
||||
handle_sigpipe(int signum)
|
||||
{
|
||||
if (0) signum=0; /* To avoid a gcc warning */
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
*----------------------------------------------------------
|
||||
@@ -847,7 +853,12 @@ StartUp(Bool defaultScreenOnly)
|
||||
sigaction(SIGUSR2, &sig_action, NULL);
|
||||
|
||||
/* ignore dead pipe */
|
||||
sig_action.sa_handler = SIG_IGN;
|
||||
sig_action.sa_handler = &handle_sigpipe;
|
||||
/* Because POSIX mandates that only signal with handlers are reset
|
||||
accross an exec*(), we do not want to propagate ignoring SIGPIPEs
|
||||
to children. Hence the dummy handler.
|
||||
Philippe Troin <phil@fifi.org>
|
||||
*/
|
||||
sig_action.sa_flags = SA_RESTART;
|
||||
sigaction(SIGPIPE, &sig_action, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user