From e6ccfb20d930867a42caf709e30828f28dd35847 Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Thu, 21 Mar 1991 06:44:06 +0000 Subject: Call Z_WaitForNotice. --- lib/ZNewLocU.c | 45 ++++++++++----------------------------------- 1 file changed, 10 insertions(+), 35 deletions(-) (limited to 'lib/ZNewLocU.c') diff --git a/lib/ZNewLocU.c b/lib/ZNewLocU.c index a0f35c7..fd1e5bf 100644 --- a/lib/ZNewLocU.c +++ b/lib/ZNewLocU.c @@ -6,15 +6,16 @@ * $Source$ * $Author$ * - * Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. + * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ /* $Header$ */ #ifndef lint -static char rcsid_ZNewLocateUser_c[] = "$Header$"; -#endif lint +static char rcsid_ZNewLocateUser_c[] = + "$Zephyr: /mit/zephyr/src/lib/RCS/ZNewLocateUser.c,v 1.4 90/12/20 03:10:34 raeburn Exp $"; +#endif #include @@ -33,10 +34,6 @@ Code_t ZNewLocateUser(user, nlocs, auth) ZNotice_t notice, retnotice; char *ptr, *end; int nrecv, ack; - fd_set read, setup; - int nfds; - int gotone; - struct timeval tv; retval = ZFlushLocations(); @@ -63,35 +60,13 @@ Code_t ZNewLocateUser(user, nlocs, auth) nrecv = ack = 0; - FD_ZERO(&setup); - FD_SET(ZGetFD(), &setup); - nfds = ZGetFD() + 1; - while (!nrecv || !ack) { - tv.tv_sec = 0; - tv.tv_usec = 500000; - for (i=0;i