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)
This commit is contained in:
Nickolai Zeldovich 2001-11-01 05:16:27 +00:00 committed by Derrick Brashear
parent 42fddc7b46
commit b20525634a

View 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