]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
solaris-rx-kernel-set-listener-pid-from-curproc-20011101
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 1 Nov 2001 05:16:27 +0000 (05:16 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 Nov 2001 05:16:27 +0000 (05:16 +0000)
set kernel listener pid from curproc rather than curthread (and clean
up unnecessary break case in code)

src/rx/rx_kcommon.c

index 8755fb31f4258ae95d888aac995071b738b4ad57..a3e3ac6aa2723234461b29b6a28362a1071d75fe 100644 (file)
@@ -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