unix.c
changeset 1509 2c232b7d2114
parent 1508 3f0d2f3147c2
child 1572 6d0111113f0b
--- a/unix.c	Tue Mar 15 14:06:28 2005 +0000
+++ b/unix.c	Tue Mar 15 14:23:00 2005 +0000
@@ -10,6 +10,7 @@
 #include <sys/stat.h>
 #include <time.h>
 #include <pwd.h>
+#include <signal.h>
 
 #if defined(__linux__)
 #include <sys/statvfs.h>
@@ -464,6 +465,7 @@
 
 	_random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
 
+	signal(SIGPIPE, SIG_IGN);
 
 	return ttd_main(argc, argv);
 }