From 17077aef97cf25e3dc0387a529f4c2d6319b4ccc Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 13 Dec 1997 11:04:44 +0000 Subject: 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. --- lib/ZhmStat.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/ZhmStat.c') 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)); } -- cgit v1.2.3