From: Derrick Brashear Date: Fri, 6 Jun 2003 21:00:34 +0000 (+0000) Subject: STABLE12-linux-rx-listener-flush-signals-20030605 X-Git-Tag: openafs-stable-1_2_10~43 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fb744d53cebbe5541d4426a3c171daabdcc5d7e8;p=packages%2Fo%2Fopenafs.git STABLE12-linux-rx-listener-flush-signals-20030605 FIXES 1409 make sure we flush signals before calling force_sig. i don't know why this matters, but it does. (cherry picked from commit ad61a30d57eaf91d6c4edde632459b7e3d9f8700) --- diff --git a/src/rx/LINUX/rx_knet.c b/src/rx/LINUX/rx_knet.c index eb6ccdb87..5b6631a4f 100644 --- a/src/rx/LINUX/rx_knet.c +++ b/src/rx/LINUX/rx_knet.c @@ -184,9 +184,12 @@ void osi_StopListener(void) #endif listener = find_task_by_pid(rxk_ListenerPid); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) - read_unlock(&tasklist_lock); + read_unlock(&tasklist_lock); #endif while (rxk_ListenerPid) { + struct task_struct *p; + + flush_signals(listener); force_sig(SIGKILL, listener); afs_osi_Sleep(&rxk_ListenerPid); }