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:
parent
cee59053dc
commit
93b98ff572
@ -39,4 +39,9 @@ int pivot_root(const char *new_root, const char *put_old)
|
|||||||
{
|
{
|
||||||
return syscall(__NR_pivot_root, new_root, put_old);
|
return syscall(__NR_pivot_root, new_root, put_old);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int tcdrain(int fd)
|
||||||
|
{
|
||||||
|
return ioctl(fd, TCSBRK, 1);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user