xenocara/app/fvwm/extras/FvwmConfig/dead.c

20 lines
363 B
C
Raw Normal View History

#include <signal.h>
#include <stdlib.h>
/***********************************************************************
*
* Procedure:
* SIGPIPE handler - SIGPIPE means fvwm is dying
*
***********************************************************************/
void DeadPipe(int nonsense)
{
exit(0);
}
void SetupPipeHandler(void)
{
signal(SIGPIPE,DeadPipe);
}