blob: 226e3d80caa494f9c754b67bc7cf647c970109b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ad,v 1.8 2004/11/05 11:51:35 adam Exp $
--- src/main.c.orig 2004-10-25 01:32:51.000000000 +0000
+++ src/main.c
@@ -28,6 +28,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
+#include <signal.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -233,6 +234,12 @@ SetupEnvironment(WScreen *scr)
{
char *tmp, *ptr;
char buf[16];
+ struct sigaction sa;
+
+ sa.sa_handler = SIG_DFL;
+ sigemptyset(&sa.sa_mask);
+ /* sa.sa_mask = 0; */
+ sigaction(SIGPIPE, &sa, NULL);
if (multiHead) {
int len = strlen(DisplayName)+64;
|