Commit 82d97f87 by Stéphane Graber

Merge pull request #835 from brauner/2016-02-15/lxc_attach_pty

fix android build
parents cee1de17 5f9573f2
......@@ -228,9 +228,9 @@ static pid_t fork_pty(int *masterfd)
close(master);
setsid();
if (ioctl(slave, TIOCSCTTY, NULL) < 0)
_Exit(-1); /* automatically closes fds */
_exit(-1); /* automatically closes fds */
if (lxc_console_set_stdfds(slave) < 0)
_Exit(-1); /* automatically closes fds */
_exit(-1); /* automatically closes fds */
return 0;
} else {
*masterfd = master;
......
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