From: Paul Park Date: Thu, 27 Jul 1995 19:36:34 +0000 (+0000) Subject: Check for interrupted select in krshd X-Git-Tag: krb5-1.0-beta6~1488 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74e22bb3017838a2ea819389bbe110512f5904a0;p=krb5.git Check for interrupted select in krshd git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6332 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);