Bionic lacks tcdrain; provide a workaround

Signed-off-by: Matt Whitlock <busybox@mattwhitlock.name>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Matt Whitlock 2015-04-26 13:14:50 +02:00 committed by Denys Vlasenko
parent cee59053dc
commit 93b98ff572

View File

@ -39,4 +39,9 @@ int pivot_root(const char *new_root, const char *put_old)
{
return syscall(__NR_pivot_root, new_root, put_old);
}
int tcdrain(int fd)
{
return ioctl(fd, TCSBRK, 1);
}
#endif