jonathancammack / rpms / openssh

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