]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux-use-while-loop-and-also-do-it-for-22-waiting-to-close-socket-20020123
authorDerrick Brashear <shadow@dementia.org>
Wed, 23 Jan 2002 18:49:59 +0000 (18:49 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 23 Jan 2002 18:49:59 +0000 (18:49 +0000)
while loop idea from chas@cmf.nrl.navy.mil
reminder that we should worry about 2.2 from somkar@in.ibm.com

src/rx/LINUX/rx_knet.c

index ccc3447a95b08d1df8aaeef49b37e1473c7988de..7379c22e677bac805cb54fd74798569eb5bb6850 100644 (file)
@@ -178,14 +178,9 @@ void osi_StopListener(void)
     extern int (*sys_killp)();
     extern int rxk_ListenerPid;
 
-    if (rxk_ListenerPid) {
+    while (rxk_ListenerPid) {
        (void) (*sys_killp)(rxk_ListenerPid, 9);
-#ifdef AFS_LINUX24_ENV
-       afs_osi_Sleep(&rxk_ListenerPid); /* get an event */
-       afs_osi_Sleep(&rxk_ListenerPid); /* actually sleep */
-#else
-       rxk_ListenerPid = 0;
-#endif
+       afs_osi_Sleep(&rxk_ListenerPid); 
     }
     sock_release(rx_socket);
     rx_socket = NULL;