Check for interrupted select in krshd
authorPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:36:34 +0000 (19:36 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:36:34 +0000 (19:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6332 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krshd.c

index 606de5fa6f4119d5d57823f56d4d55296bf68cc5..91813704f9f490c634f7ff72ec60c0a9a5774c28 100644 (file)
@@ -1,3 +1,7 @@
+
+Thu Jul 27 15:02:03 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * krshd.c - Check for interrupted select.  Should fix bug #1555.
+
 Thu Jul 13 17:49:54 1995  Sam Hartman  <hartmans@tertius.mit.edu>
 
        * configure.in : Short circuit the streams test for AIX to false
index d84fe22f7bb8ac4024dec45e3f3898fff53e3079..f844606d85bb837f54b7c4ebfbd0a75ddc1cd0c3 100644 (file)
@@ -1129,8 +1129,12 @@ doit(f, fromp)
            do {
                ready = readfrom;
                if (select(8*sizeof(ready), &ready, (fd_set *)0,
-                          (fd_set *)0, (struct timeval *)0) < 0)
-                 break;
+                          (fd_set *)0, (struct timeval *)0) < 0) {
+                   if (errno == EINTR)
+                       continue;
+                   else
+                       break;
+               }
                if (FD_ISSET(s, &ready)) {
                    if ((*des_read)(s, &sig, 1) <= 0)
                        FD_CLR(s, &readfrom);