Skip to content

Popen.terminate and Popen.kill in dockerblade don't behave as expected #198

@ChrisTimperley

Description

@ChrisTimperley

Popen.terminate and Popen.kill in dockerblade don't seem to be working. At least, the don't seem to be working the way the command line does.

I get the tracing:

2021-09-23 17:17:54.246 | INFO     | rosdiscover.cli:_periodic_observe:180 - Killing bash /tmp/tmp.RgfVxCnwQL.sh
2021-09-23 17:17:54.249 | INFO     | rosdiscover.cli:_periodic_observe:180 - Killing bash /tmp/tmp.PokDaCA8aV.sh
2021-09-23 17:17:54.267 | INFO     | rosdiscover.cli:_periodic_observe:180 - Killing bash /tmp/tmp.SEAp09MraL.sh

But when I open a shell, and do ps ux I see:

root      8821  0.0  0.0  20792  4180 pts/6    Ss+  17:15   0:00 bash /tmp/tmp.RgfVxCnwQL.sh
root     10056  0.0  0.0  20792  4152 pts/7    Ss+  17:16   0:00 bash /tmp/tmp.PokDaCA8aV.sh
root     10056  0.0  0.0  20792  4152 pts/7    Ss+  17:16   0:00 bash /tmp/tmp.PokDaCA8aV.sh

(As well as all the ros nodes). If from a terminal on the container I do kill 8821 etc, that stops the processes and the child processes.

Originally posted by @schmerl in #197 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions