summaryrefslogtreecommitdiff
path: root/news/tin/patches/patch-ai
blob: 40d78006b69fc2fd278f31c03767aeefac5833f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ai,v 1.1 2009/10/22 22:01:26 wiz Exp $

--- src/nntplib.c.orig	2009-02-09 11:03:19.000000000 +0100
+++ src/nntplib.c
@@ -888,6 +888,10 @@ get_server(
 	 *       leave the s_gets() in that case)
 	 */
 	while (nntp_rd_fp == NULL || s_gets(string, size, nntp_rd_fp) == NULL) {
+		if (errno == EINTR) {
+			errno = 0;
+			continue;
+		}
 		if (quitting)						/* Don't bother to reconnect */
 			tin_done(NNTP_ERROR_EXIT);		/* And don't try to disconnect again! */