]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
stdin-killer: do not setpgrp if already leader 1881/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 4 Aug 2023 13:17:28 +0000 (09:17 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 4 Aug 2023 15:35:40 +0000 (11:35 -0400)
commitb5bd9a5bfbc6601a965189f214518f21adfdcf46
treea3f0492d5c22b1add00a117e1733bdf74558f061
parentce5f6d589a888dfc88977261bfa1ed63441de8fb
stdin-killer: do not setpgrp if already leader

Fixes failure like:

    2023-08-03T19:40:10.942 INFO:teuthology.orchestra.run.smithi100.stderr:Traceback (most recent call last):
    2023-08-03T19:40:10.942 INFO:teuthology.orchestra.run.smithi100.stderr:  File "/usr/bin/stdin-killer", line 213, in <module>
    2023-08-03T19:40:10.943 INFO:teuthology.orchestra.run.smithi100.stderr:    os.setpgrp()
    2023-08-03T19:40:10.943 INFO:teuthology.orchestra.run.smithi100.stderr:PermissionError: [Errno 1] Operation not permitted

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/task/install/bin/stdin-killer