FreeBSD Bugzilla – Attachment 157915 Details for
Bug 200992
proccess won't die in thread_suspend_switch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Return true from callout_stop() if not_on_a_list is true.
1.patch (text/plain), 806 bytes, created by
Konstantin Belousov
on 2015-06-21 06:34:38 UTC
(
hide
)
Description:
Return true from callout_stop() if not_on_a_list is true.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2015-06-21 06:34:38 UTC
Size:
806 bytes
patch
obsolete
>diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c >index 01da596..06b5abe 100644 >--- a/sys/kern/kern_timeout.c >+++ b/sys/kern/kern_timeout.c >@@ -1237,7 +1237,7 @@ again: > CC_UNLOCK(cc); > if (sq_locked) > sleepq_release(&cc_exec_waiting(cc, direct)); >- return (0); >+ return (not_on_a_list); > } > > if (safe) { >@@ -1352,13 +1352,13 @@ again: > CTR3(KTR_CALLOUT, "postponing stop %p func %p arg %p", > c, c->c_func, c->c_arg); > CC_UNLOCK(cc); >- return (0); >+ return (not_on_a_list); > } > CTR3(KTR_CALLOUT, "failed to stop %p func %p arg %p", > c, c->c_func, c->c_arg); > CC_UNLOCK(cc); > KASSERT(!sq_locked, ("sleepqueue chain still locked")); >- return (0); >+ return (not_on_a_list); > } > if (sq_locked) > sleepq_release(&cc_exec_waiting(cc, direct));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200992
:
157913
| 157915