solaris-rx-shutdown-sleep-only-if-listener-pid-not-freed-20020124

replace if with while in case the listener is freed before we call sleep
This commit is contained in:
Derrick Brashear 2002-01-24 10:46:42 +00:00
parent 5c2a4168a6
commit f2d38d3683

View File

@ -281,7 +281,7 @@ int osi_FreeSocket(asocket)
vnode_t *vp = SOTOV(so); vnode_t *vp = SOTOV(so);
AFS_STATCNT(osi_FreeSocket); AFS_STATCNT(osi_FreeSocket);
if (rxk_ListenerPid) { while (rxk_ListenerPid) {
kill(rxk_ListenerPid, SIGUSR1); kill(rxk_ListenerPid, SIGUSR1);
afs_osi_Sleep(&rxk_ListenerPid); afs_osi_Sleep(&rxk_ListenerPid);
} }