rutwa189 / rpms / openssh

Forked from rpms/openssh a year ago
Clone
9070b3
diff -up openssh-5.8p2/ssh-keyscan.c.sigpipe openssh-5.8p2/ssh-keyscan.c
9070b3
--- openssh-5.8p2/ssh-keyscan.c.sigpipe	2011-08-23 18:30:33.873025916 +0200
9070b3
+++ openssh-5.8p2/ssh-keyscan.c	2011-08-23 18:32:24.574025362 +0200
9070b3
@@ -715,6 +715,8 @@ main(int argc, char **argv)
9070b3
 		fdlim_set(maxfd);
9070b3
 	fdcon = xcalloc(maxfd, sizeof(con));
9070b3
 
9070b3
+	signal(SIGPIPE, SIG_IGN);
9070b3
+
9070b3
 	read_wait_nfdset = howmany(maxfd, NFDBITS);
9070b3
 	read_wait = xcalloc(read_wait_nfdset, sizeof(fd_mask));
9070b3