Skip to content

Commit

Permalink
Merge pull request #2151 from brauner/2018-02-10/remove_openpty_lock
Browse files Browse the repository at this point in the history
console: they are really not necessary
  • Loading branch information
stgraber committed Feb 10, 2018
2 parents ba2861f + 8d81a3c commit de0cd20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lxc/console.c
Expand Up @@ -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;
Expand Down

0 comments on commit de0cd20

Please sign in to comment.