mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
26 lines
575 B
Plaintext
26 lines
575 B
Plaintext
$NetBSD: patch-ad,v 1.9 2013/05/21 14:38:40 hans Exp $
|
|
|
|
--- src/main.c.orig 2013-01-09 21:42:49.000000000 +0000
|
|
+++ src/main.c
|
|
@@ -31,6 +31,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
+#include <signal.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/Xutil.h>
|
|
@@ -315,6 +316,12 @@ void 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;
|