diff options
author | Greg Hudson <ghudson@mit.edu> | 1997-12-13 11:04:44 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1997-12-13 11:04:44 +0000 |
commit | 17077aef97cf25e3dc0387a529f4c2d6319b4ccc (patch) | |
tree | e3f36dc1eeec0015b65c3ce1ab3ba87b6b5b99fc /lib/ZhmStat.c | |
parent | 443967a16982c65d0df06de46b678539c3990921 (diff) |
Now that we're using select(), if for some odd reason we get an EINTR
reading the packet (shouldn't happen), return EINTR. Previously we
could return ZERR_NONE without initializing notice, which is bad.
Diffstat (limited to 'lib/ZhmStat.c')
-rw-r--r-- | lib/ZhmStat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ZhmStat.c b/lib/ZhmStat.c index 84e6a82..08d5193 100644 --- a/lib/ZhmStat.c +++ b/lib/ZhmStat.c @@ -65,9 +65,5 @@ Code_t ZhmStat(hostaddr, notice) if (code == 0 || (code < 0 && errno == EINTR) || ZPending() == 0) return(ZERR_HMDEAD); - code = ZReceiveNotice(notice, (struct sockaddr_in *) 0); - if (code != EINTR) - return(code); - - return(ZERR_NONE); + return(ZReceiveNotice(notice, (struct sockaddr_in *) 0)); } |