]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: they are really not necessary
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 10 Feb 2018 11:54:31 +0000 (12:54 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 12 Feb 2018 16:21:49 +0000 (17:21 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/console.c

index 5ee4984c0ac6a36407b57cd99e4a4493641c4e78..c233d9bd8acfff270694fffb1373b5e028323873 100644 (file)
@@ -390,10 +390,8 @@ static int lxc_console_peer_proxy_alloc(struct lxc_console *console, int sockfd)
        /* this is the proxy pty that will be given to the client, and that
         * the real pty master will send to / recv from
         */
-       process_lock();
        ret = openpty(&console->peerpty.master, &console->peerpty.slave,
                    console->peerpty.name, NULL, NULL);
-       process_unlock();
        if (ret) {
                SYSERROR("failed to create proxy pty");
                return -1;