Skip to content

Commit

Permalink
fix android build
Browse files Browse the repository at this point in the history
bionic libc doesn't know _Exit(). Replace it with _exit().

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
  • Loading branch information
Christian Brauner committed Feb 21, 2016
1 parent cee1de1 commit 5f9573f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/lxc_attach.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5f9573f

Please sign in to comment.