[lxc-devel] [lxc/master] console: they are really not necessary

brauner on Github lxc-bot at linuxcontainers.org
Sat Feb 10 11:55:12 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180210/f3a2432f/attachment.bin>
-------------- next part --------------
From 8d81a3c87fa1ea6bc786a77a7d033397f98024ea Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Sat, 10 Feb 2018 12:54:31 +0100
Subject: [PATCH] console: they are really not necessary

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/console.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/lxc/console.c b/src/lxc/console.c
index d613d7987..a16466ba3 100644
--- a/src/lxc/console.c
+++ b/src/lxc/console.c
@@ -398,10 +398,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;


More information about the lxc-devel mailing list