From 74e22bb3017838a2ea819389bbe110512f5904a0 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 27 Jul 1995 19:36:34 +0000 Subject: [PATCH] Check for interrupted select in krshd git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6332 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 4 ++++ src/appl/bsd/krshd.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 606de5fa6..91813704f 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -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 * configure.in : Short circuit the streams test for AIX to false diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index d84fe22f7..f844606d8 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -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); -- 2.26.2