blob: b8e6e218ca4c07028bd2f047720ec8982edd5811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ab,v 1.1 2001/04/17 16:38:43 tron Exp $
--- netio.c.orig Wed Mar 28 13:17:28 2001
+++ netio.c Tue Apr 17 18:33:19 2001
@@ -282,6 +282,7 @@
bTimeOver = 0;
signal(SIGALRM, on_alarm);
alarm(nSeconds);
+ return 0;
}
int StartTimer(TIMER *nStart)
@@ -603,7 +604,7 @@
{
while (!bTimeOver)
{
- if ((rc = send(server, cBuffer, tSizes[i], 0)) != tSizes[i] && errno != 0)
+ if ((rc = send(server, cBuffer, tSizes[i], 0)) != tSizes[i] && errno != 0 && errno != EINTR)
{
psock_errno("send()");
break;
|