[lxc-devel] [lxc/lxc] e87bd1: conf: close fd in lxc_setup_devpts()

GitHub noreply at github.com
Fri Apr 28 14:44:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: e87bd19cebec8e0e0a8bd2094b7d92eee3516d1d
      https://github.com/lxc/lxc/commit/e87bd19cebec8e0e0a8bd2094b7d92eee3516d1d
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-04-28 (Fri, 28 Apr 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  conf: close fd in lxc_setup_devpts()

This left the file descriptor to the underlying /dev/ptmx file open which
confused the hell out of criu. Let's close it.

Closes https://github.com/lxc/lxd/issues/3243.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 1545a1f163aa98c046a369b4b15e619c48faa9ce
      https://github.com/lxc/lxc/commit/1545a1f163aa98c046a369b4b15e619c48faa9ce
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2017-04-28 (Fri, 28 Apr 2017)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  Merge pull request #1528 from brauner/2017-04-28/close_fd_in_lxc_setup_devpts

conf: close fd in lxc_setup_devpts()


Compare: https://github.com/lxc/lxc/compare/da1ef68cae70...1545a1f163aa


More information about the lxc-devel mailing list