#1094635 /usr/bin/autopkgtest-virt-unshare: processes not killed by close

#1094635#5
Date:
2025-01-29 12:46:27 UTC
From:
To:
Steps to reproduce:

  With some kind of image tarball bookworm.tar

    $ autopkgtest-virt-unshare -t bookworm.tar
    ok
    open
    ok /tmp/autopkgtest.HYR0W4
    print-execute-command

  Then in another terminal, using that command with the commas
  replaced with spaces:

    $ unshare --map-auto --map-root-user --user --mount -- /usr/share/autopkgtest/lib/unshare-helper /tmp/tmp_8rqn1g5 -- sleep 12345

  Observe with ps -efH | grep sleep that the sleep 12345 is running.

  Now, in the autopkgtest-virt-unshare terminal,

    close

Expected behaviour:

  The sleep is killed.  The unshare rune exits.
  Then "ok" from autopkgtest-virt-unshare

Actual behaviour

  "ok" from autopkgtest-virt-unshare.
  But, the sleep and the unshare rune are still running.