]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
This commit was generated by cvs2svn to compensate for changes in r425,
authorSam Hartman <hartmans@debian.org>
Mon, 28 Jan 2002 00:30:31 +0000 (00:30 +0000)
committerSam Hartman <hartmans@debian.org>
Mon, 28 Jan 2002 00:30:31 +0000 (00:30 +0000)
which included commits to RCS files with non-trunk default branches.

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

index 53d8c0e09d4ad75b20afa326adb3e7c42883a6c9..8228ca709989800649bfad06f6d7d0634a2b7234 100644 (file)
@@ -15,7 +15,7 @@
 #include <afsconfig.h>
 #include "../afs/param.h"
 
-RCSID("$Header: /tmp/cvstemp/openafs/src/rx/LINUX/rx_knet.c,v 1.1.1.7 2002/01/22 19:54:25 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/rx/LINUX/rx_knet.c,v 1.1.1.8 2002/01/28 00:30:30 hartmans Exp $");
 
 #ifdef AFS_LINUX22_ENV
 #include "../rx/rx_kcommon.h"
@@ -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;
index 13a46ec9a20a5b62e8d13e796312255b6dd9859f..8919b9358414d840413623e16d0ef8a67edb628f 100644 (file)
@@ -10,7 +10,7 @@
 #include <afsconfig.h>
 #include "../afs/param.h"
 
-RCSID("$Header: /tmp/cvstemp/openafs/src/rx/SOLARIS/rx_knet.c,v 1.1.1.7 2001/10/14 18:06:27 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/rx/SOLARIS/rx_knet.c,v 1.1.1.8 2002/01/28 00:30:31 hartmans Exp $");
 
 #ifdef AFS_SUN5_ENV
 #include "../rx/rx_kcommon.h"
@@ -281,8 +281,10 @@ int osi_FreeSocket(asocket)
     vnode_t *vp = SOTOV(so);
 
     AFS_STATCNT(osi_FreeSocket);
-    if (rxk_ListenerPid)
+    while (rxk_ListenerPid) {
        kill(rxk_ListenerPid, SIGUSR1);
+       afs_osi_Sleep(&rxk_ListenerPid);
+    }
     return 0;
 }
 
@@ -512,8 +514,10 @@ int osi_FreeSocket(asocket)
     TIUSER *udp_tiptr = (TIUSER *) asocket;    
     AFS_STATCNT(osi_FreeSocket);
 
-    if (rxk_ListenerPid)
+    if (rxk_ListenerPid) {
        kill(rxk_ListenerPid, SIGUSR1);
+       afs_osi_Sleep(&rxk_ListenerPid);
+    }
     return 0;
 }
 
index 4ac766780f6578ba788d65ecd2f1b051cd89a750..e74da16a4d9e8a8570b9d6cc1d06d2d40dfdb16e 100644 (file)
@@ -14,7 +14,7 @@
 #include <afsconfig.h>
 #include "../afs/param.h"
 
-RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx_kcommon.c,v 1.1.1.9 2001/10/14 18:06:21 hartmans Exp $");
+RCSID("$Header: /tmp/cvstemp/openafs/src/rx/rx_kcommon.c,v 1.1.1.10 2002/01/28 00:30:24 hartmans Exp $");
 
 #include "../rx/rx_kcommon.h"
 
@@ -1059,7 +1059,7 @@ void rxk_Listener(void)
        afs_osi_Wakeup(&afs_termState);
     }
     rxk_ListenerPid = 0;
-#ifdef AFS_LINUX24_ENV
+#if defined(AFS_LINUX22_ENV) || defined(AFS_SUN5_ENV)
     afs_osi_Wakeup(&rxk_ListenerPid);
 #endif
 #ifdef AFS_SUN5_ENV