raven-rhel6/openssh/openssh-5.8p2-sigpipe.patch

15 lines
492 B
Diff
Raw Normal View History

2024-02-21 20:14:44 +06:00
diff -up openssh-5.8p2/ssh-keyscan.c.sigpipe openssh-5.8p2/ssh-keyscan.c
--- openssh-5.8p2/ssh-keyscan.c.sigpipe 2011-08-23 18:30:33.873025916 +0200
+++ openssh-5.8p2/ssh-keyscan.c 2011-08-23 18:32:24.574025362 +0200
2024-02-28 17:40:12 +06:00
@@ -715,6 +715,9 @@ main(int argc, char **argv)
if (maxfd > fdlim_get(0))
2024-02-21 20:14:44 +06:00
fdlim_set(maxfd);
fdcon = xcalloc(maxfd, sizeof(con));
2024-02-28 17:40:12 +06:00
+
2024-02-21 20:14:44 +06:00
+ signal(SIGPIPE, SIG_IGN);
+
2024-02-28 17:40:12 +06:00
read_wait = xcalloc(maxfd, sizeof(struct pollfd));
for (j = 0; j < maxfd; j++)
read_wait[j].fd = -1;
2024-02-21 20:14:44 +06:00