OSSP CVS Repository

ossp - Check-in [745]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 745
Date: 2001-Aug-23 10:10:12 (local)
2001-Aug-23 08:10:12 (UTC)
User:rse
Branch:
Comment: remove fixmes
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/nntp.c      1.11 -> 1.12     8 inserted, 2 deleted

ossp-pkg/lmtp2nntp/nntp.c 1.11 -> 1.12

--- nntp.c       2001/08/23 07:52:25     1.11
+++ nntp.c       2001/08/23 08:10:12     1.12
@@ -327,7 +327,10 @@
     if (strncmp(line, "340", 3) != 0)
         return NNTP_ERR_POST;
 
-    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) /*FIXME while() wrapper around write required */
+    do {
+        rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg));
+    } while (rc == -1 && errno = EINTR);
+    if (rc == -1)
         return NNTP_ERR_SYSTEM;
 
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)
@@ -401,7 +404,10 @@
     if (strncmp(line, "335", 3) != 0)
         return NNTP_ERR_POST;
 
-    if ((rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg))) < 0) /*FIXME while() wrapper around write required */
+    do {
+        rc = nntp->io.write(nntp->wfd, msg->cpMsg, strlen(msg->cpMsg));
+    } while (rc == -1 && errno = EINTR);
+    if (rc == -1)
         return NNTP_ERR_SYSTEM;
 
     if ((rc = nntp_readline(nntp, line, sizeof(line))) != NNTP_OK)

CVSTrac 2.0.1