diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-20 13:01:21 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-20 13:01:21 +0000 |
| commit | d3593afba8e99c219b3a1dbb98c3e282a6ddeac4 (patch) | |
| tree | 8a45c39342fc273e1d0221c66ec97014b17d9c3e /eval.c | |
| parent | 6148de1a6fdf7b1a6ef46dcad7322c781f3394ac (diff) | |
| download | ruby-d3593afba8e99c219b3a1dbb98c3e282a6ddeac4.tar.gz ruby-d3593afba8e99c219b3a1dbb98c3e282a6ddeac4.tar.xz ruby-d3593afba8e99c219b3a1dbb98c3e282a6ddeac4.zip | |
* eval.c (rb_thread_cleanup): keep thread group for main thread.
[ruby-dev:21644]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9676,9 +9676,9 @@ rb_thread_cleanup() FOREACH_THREAD_FROM(curr, th) { if (th->status != THREAD_KILLED) { rb_thread_ready(th); - th->thgroup = 0; - th->priority = 0; if (th != main_thread) { + th->thgroup = 0; + th->priority = 0; th->status = THREAD_TO_KILL; RDATA(th->thread)->dfree = NULL; } |
