The process is only returned locked if the process is found.
Don't try to unlock it if it's not found.
Change-Id: I3911955561d0d97e8080bcd18b4e4393b19ad860
Reviewed-on: http://gerrit.openafs.org/3186
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
soshutdown(rx_socket, SHUT_RDWR);
p = pfind(rxk_ListenerPid);
afs_warn("osi_StopListener: rxk_ListenerPid %lx\n", p);
- if (p)
+ if (p) {
psignal(p, SIGUSR1);
- PROC_UNLOCK(p);
+ PROC_UNLOCK(p);
+ }
#ifdef AFS_FBSD70_ENV
{
/* Avoid destroying socket until osi_NetReceive has