bmh10 / rpms / openssh

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