mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (rb_thread_terminate_all): add a comment why we need
state check and call terminate_i again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
30edf111c5
commit
61430a167b
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Oct 24 12:23:58 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread.c (rb_thread_terminate_all): add a comment why we need
|
||||
state check and call terminate_i again.
|
||||
|
||||
Thu Oct 24 12:15:02 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread.c (rb_thread_terminate_all): add a comment why infinite
|
||||
|
|
5
thread.c
5
thread.c
|
@ -449,6 +449,11 @@ rb_thread_terminate_all(void)
|
|||
}
|
||||
TH_POP_TAG();
|
||||
|
||||
/*
|
||||
* When caught an exception (e.g. Ctrl+C), let's broadcast
|
||||
* kill request again to ensure killing all threads even
|
||||
* if they are blocked on sleep, mutex, etc.
|
||||
*/
|
||||
if (state) {
|
||||
goto retry;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue