Commit 5f9573f2 by Christian Brauner

fix android build

bionic libc doesn't know _Exit(). Replace it with _exit(). Signed-off-by: 's avatarChristian Brauner <christian.brauner@mailbox.org>
parent cee1de17
......@@ -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