Is that still a thing on 3.x or higher?

** Changed in: lxc (Ubuntu)
       Status: New => Incomplete

You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.

  python-lxc attach_wait prevents further keyboard input

Status in lxc package in Ubuntu:

Bug description:
  I previously reported this bug on Github
  (, but am duplicating the
  report here for completeness.

  I've found that my python scripts stop responding to keyboard input
  after running an lxc attach_wait command in python3-lxc

  I wrote a small script to quickly reproduce the issue. With the
  script, one can see that using Ctrl+C before running the lxc command
  causes a KeyboardInterrupt, but using Ctrl+C after the lxc command
  finishes is no longer caught.

      #!/usr/bin/env python3

      import lxc
      import time
      import os
      CONTAINER_PATH='%s/.cache/libertine-container' % os.environ["HOME"]
      def lxc_work():
          container = lxc.Container(CONTAINER_NAME, CONTAINER_PATH)
          container.attach_wait(lxc.attach_run_command, ['ls'])
      print("Ctrl+C will attempt to stop the script during the next ~5 seconds")
      print("Running lxc command 'ls' in container '%s', please wait..." % 
      print("Ctrl+C should attempt to stop the script in the next ~5 seconds, 
but doesn't")

  Also see:

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to