From b20525634aa5b8cfbba33d59527a337e060278ff Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Thu, 1 Nov 2001 05:16:27 +0000 Subject: [PATCH] solaris-rx-kernel-set-listener-pid-from-curproc-20011101 set kernel listener pid from curproc rather than curthread (and clean up unnecessary break case in code) --- src/rx/rx_kcommon.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rx/rx_kcommon.c b/src/rx/rx_kcommon.c index 8755fb31f4..a3e3ac6aa2 100644 --- a/src/rx/rx_kcommon.c +++ b/src/rx/rx_kcommon.c @@ -1023,7 +1023,7 @@ void rxk_Listener(void) rxk_ListenerPid = current->pid; #endif #ifdef AFS_SUN5_ENV - rxk_ListenerPid = ttoproc(curthread)->p_pidp->pid_id; + rxk_ListenerPid = curproc->p_pid; #endif /* AFS_SUN5_ENV */ #if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) rxk_ListenerPid = current_proc()->p_pid; @@ -1046,9 +1046,6 @@ void rxk_Listener(void) rxp = rxi_ReceivePacket(rxp, rx_socket, host, port); AFS_RXGUNLOCK(); } - if (afs_termState == AFSOP_STOP_RXK_LISTENER) - break; - } #ifdef RX_ENABLE_LOCKS