[lxc-devel] [lxc/master] fix android build
brauner on Github
lxc-bot at linuxcontainers.org
Sun Feb 21 22:23:52 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 426 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160221/f2fc265b/attachment.bin>
-------------- next part --------------
From 5f9573f27466ab54efa794871844087bfd1d83d4 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at mailbox.org>
Date: Sun, 21 Feb 2016 23:14:23 +0100
Subject: [PATCH] fix android build
bionic libc doesn't know _Exit(). Replace it with _exit().
Signed-off-by: Christian Brauner <christian.brauner at mailbox.org>
---
src/lxc/lxc_attach.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lxc/lxc_attach.c b/src/lxc/lxc_attach.c
index 7175e58..98e917a 100644
--- a/src/lxc/lxc_attach.c
+++ b/src/lxc/lxc_attach.c
@@ -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;
More information about the lxc-devel
mailing list