Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プロセスの再読み込みをすると一部のThreadが残り続ける #233

Open
jiikko opened this issue Dec 12, 2022 · 0 comments · May be fixed by #234
Open

プロセスの再読み込みをすると一部のThreadが残り続ける #233

jiikko opened this issue Dec 12, 2022 · 0 comments · May be fixed by #234
Labels
bug Something isn't working

Comments

@jiikko
Copy link
Member

jiikko commented Dec 12, 2022

pi@raspberrypi2[/usr/share/pbm/current]$ pstree `cat ./pbm_pid` -pt
ruby(23352)─┬─ruby(23429)─┬─bypass_command*(23434)─┬─{drb.rb:1259}(23438)
            │             │                        ├─{drb.rb:1555}(23435)
            │             │                        ├─{master_process*}(23437)
            │             │                        └─{remote_macro_r*}(23436)
            │             ├─bypass_command*(23439)─┬─{drb.rb:1259}(23444)
            │             │                        ├─{drb.rb:1555}(23441)
            │             │                        ├─{master_process*}(23443)
            │             │                        └─{remote_macro_r*}(23442)
            │             ├─{bypass_command*}(23432)
            │             ├─{bypass_command*}(23433)
            │             └─{drb.rb:1555}(23431)
            ├─{can_over_proce*}(23404)
            ├─{can_over_proce*}(23407)
            ├─{can_over_proce*}(23409)
            ├─{client.rb:9}(23403)
            ├─{drb.rb:1259}(23411)
            ├─{drb.rb:1555}(23402)
            ├─{drb.rb:1555}(23406)
            ├─{drb.rb:1555}(23408)
            ├─{drb.rb:1713}(23412)
            ├─{drb.rb:1713}(23413)
            ├─{drb.rb:1713}(23440)
            ├─{drb.rb:1713}(23445)
            ├─{forever.rb:26}(23401)
            ├─{scheduler.rb:58}(23410)
            └─{worker.rb:12}(23428)

👇 sudo kill -USR2 cat ./pbm_pidを実行した後

pi@raspberrypi2[/usr/share/pbm/current]$ pstree `cat ./pbm_pid` -pt
ruby(23352)─┬─ruby(23455)─┬─bypass_command*(23461)─┬─{drb.rb:1259}(23466)
            │             │                        ├─{drb.rb:1555}(23462)
            │             │                        ├─{master_process*}(23464)
            │             │                        └─{remote_macro_r*}(23463)
            │             ├─bypass_command*(23465)─┬─{drb.rb:1259}(23471)
            │             │                        ├─{drb.rb:1555}(23468)
            │             │                        ├─{master_process*}(23470)
            │             │                        └─{remote_macro_r*}(23469)
            │             ├─{bypass_command*}(23459)
            │             ├─{bypass_command*}(23460)
            │             └─{drb.rb:1555}(23458)
            ├─{can_over_proce*}(23404)
            ├─{can_over_proce*}(23407)
            ├─{can_over_proce*}(23409)
            ├─{client.rb:9}(23403)
            ├─{drb.rb:1259}(23411)
            ├─{drb.rb:1555}(23402)
            ├─{drb.rb:1555}(23406)
            ├─{drb.rb:1555}(23408)
            ├─{drb.rb:1713}(23412)
            ├─{drb.rb:1713}(23413)
            ├─{drb.rb:1713}(23440)
            ├─{drb.rb:1713}(23445)
            ├─{drb.rb:1713}(23467)
            ├─{drb.rb:1713}(23472)
            ├─{forever.rb:26}(23401)
            ├─{scheduler.rb:58}(23410)
            └─{worker.rb:12}(23428)

プロセスを停止時、drbのサービスに対して明示して終了する必要があるかも。

@jiikko jiikko added the bug Something isn't working label Dec 12, 2022
@jiikko jiikko changed the title プロセスの再読み込みをするとをするとThreadが残り続ける プロセスの再読み込みをすると一部のThreadが残り続ける Dec 13, 2022
@jiikko jiikko linked a pull request Dec 13, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant