]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE10-linux24-shutdown-listener-cleanly-20010119
authorMichael Pronath <michael.pronath@gmx.de>
Fri, 19 Jan 2001 22:24:46 +0000 (22:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 19 Jan 2001 22:24:46 +0000 (22:24 +0000)
iDon't garbage collection listener pid too early on shutdown

(cherry picked from commit d88ed238288fc1914f5bf8968bb68b2d97ef9eea)

src/rx/LINUX/rx_knet.c
src/rx/rx_kcommon.c

index 37a39f41f0908959953a7394841fb66a1946b6ac..e7307e2be19f8e2993cda3cc9a1ee512dbcc87db 100644 (file)
@@ -176,7 +176,11 @@ void osi_StopListener(void)
 
     if (rxk_ListenerPid) {
        (void) (*sys_killp)(rxk_ListenerPid, 9);
+#ifdef AFS_LINUX24_ENV
+       afs_osi_Sleep(&rxk_ListenerPid);
+#else
        rxk_ListenerPid = 0;
+#endif
     }
     sock_release(rx_socket);
     rx_socket = NULL;
index f377feec61d2f0e3d6ebc4a9b38f8bc6fbf6c760..005664ddc9bda6a7e75e19b8741fe3a27d61ed0d 100644 (file)
@@ -969,6 +969,9 @@ void rxk_Listener(void)
        afs_osi_Wakeup(&afs_termState);
     }
     rxk_ListenerPid = 0;
+#ifdef AFS_LINUX24_ENV
+    afs_osi_Wakeup(&rxk_ListenerPid);
+#endif
 #ifdef AFS_SUN5_ENV
     AFS_GUNLOCK();
 #endif /* AFS_SUN5_ENV */