]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix android build 835/head
authorChristian Brauner <christian.brauner@mailbox.org>
Sun, 21 Feb 2016 22:14:23 +0000 (23:14 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Sun, 21 Feb 2016 22:14:23 +0000 (23:14 +0100)
bionic libc doesn't know _Exit(). Replace it with _exit().

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_attach.c

index 7175e58a38be99df7a9173935abe5fc094387a95..98e917a1be799deaed9f2aa664249939391a07b3 100644 (file)
@@ -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;