Unverified Commit de0cd200 by Stéphane Graber Committed by GitHub

Merge pull request #2151 from brauner/2018-02-10/remove_openpty_lock

console: they are really not necessary
parents ba2861ff 8d81a3c8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment