Bionic lacks tcdrain; provide a workaround
No binary (build failed)
—
(log yok)
| @@ -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 | |