1
0
Fork 0
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:
kosaki 2013-10-24 03:25:25 +00:00
parent 30edf111c5
commit 61430a167b
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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;
}