rcolebaugh / rpms / openssh

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