kentpeacock / rpms / openssh

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