summaryrefslogtreecommitdiff
path: root/wm/windowmaker/patches/patch-ad
blob: deb99fed6aaf0461065b4fff3df86d095614e408 (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.3 2001/06/28 14:20:17 fvdl Exp $

--- main.c.orig	Wed Apr 11 02:14:42 2001
+++ main.c	Thu Jun 28 19:01:47 2001
@@ -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>
@@ -218,6 +219,12 @@
 {
     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) {
     	tmp = wmalloc(strlen(DisplayName)+64);