1. 14 Apr, 2016 1 commit
    • Fixed python-lxc reference to var before assignment · 9cee41de
      Aron Podrigal authored
      ```
      >>> c = lxc.Container('ct')
      >>> c.create('debian', args=('-r', 'jessie'))
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python3/dist-packages/lxc/__init__.py", line 229, in
      create
          template_args['args'] = tuple(tmp_args)
      UnboundLocalError: local variable 'tmp_args' referenced before
      assignment
      ```
      Signed-off-by: 's avatarAron Podrigal <aronp@guaranteedplus.com>
  2. 13 Apr, 2016 8 commits
  3. 12 Apr, 2016 4 commits
  4. 11 Apr, 2016 9 commits
  5. 10 Apr, 2016 2 commits
  6. 08 Apr, 2016 7 commits
  7. 07 Apr, 2016 2 commits
    • Merge pull request #951 from brauner/2016-04-07/lxc_attach_sigwinch_handler · aa3ea4d3
      Serge Hallyn authored
      lxc-attach: attach even without sigwinch handler
    • lxc-attach: attach even without sigwinch handler · 341c2aed
      Christian Brauner authored
      lxc_console_create() calls lxc_console_peer_default() which in turn calls
      lxc_console_sigwinch_init() which sets up the lxc_tty_state struct for the
      current pty. Prior to this commit lxc_console_sigwinch_init() would consider
      failures to install a SIGWINCH handler fatal and and return NULL. This commit
      makes failures to install a SIGWINCH handler non-fatal. In such cases the
      lxc_tty_state struct will still be set up but the sigfd member, which contains
      the fd which receives SIGWINCH events, will be set to -1. (This also entails
      that the sigset_t oldmaks field is meaningless.) Callers of
      lxc_console_sigwinch_init() and lxc_console_sigwinch_fini() should thus make
      sure that sigfd >= 0 or sigfd != -1 before trying to register a SIGWINCH handler
      in e.g. an lxc_mainloop or resetting the sigmask (cf. lxc_attach.c).
      
      These changes also imply that lxc_console_sigwinch_init() only fails with
      ENOMEM. Thus, all cases where lxc_console_sigwinch_init() returns NULL are to be
      considered fatal. This wasn't the case before this commit.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@mailbox.org>
  8. 06 Apr, 2016 7 commits