Blame openssh-5.8p2-sigpipe.patch
|
Jan F. Chadima |
19d4c7 |
diff -up openssh-5.8p2/ssh-keyscan.c.sigpipe openssh-5.8p2/ssh-keyscan.c
|
|
Jan F. Chadima |
19d4c7 |
--- openssh-5.8p2/ssh-keyscan.c.sigpipe 2011-08-23 18:30:33.873025916 +0200
|
|
Jan F. Chadima |
19d4c7 |
+++ openssh-5.8p2/ssh-keyscan.c 2011-08-23 18:32:24.574025362 +0200
|
|
Dmitry Belyavskiy |
03150f |
@@ -715,6 +715,9 @@ main(int argc, char **argv)
|
|
Dmitry Belyavskiy |
03150f |
if (maxfd > fdlim_get(0))
|
|
Jan F. Chadima |
19d4c7 |
fdlim_set(maxfd);
|
|
Jan F. Chadima |
19d4c7 |
fdcon = xcalloc(maxfd, sizeof(con));
|
|
Dmitry Belyavskiy |
03150f |
+
|
|
Jan F. Chadima |
19d4c7 |
+ signal(SIGPIPE, SIG_IGN);
|
|
Jan F. Chadima |
19d4c7 |
+
|
|
Dmitry Belyavskiy |
03150f |
read_wait = xcalloc(maxfd, sizeof(struct pollfd));
|
|
Dmitry Belyavskiy |
03150f |
for (j = 0; j < maxfd; j++)
|
|
Dmitry Belyavskiy |
03150f |
read_wait[j].fd = -1;
|
|
Jan F. Chadima |
19d4c7 |
|