← Commit list

93b98ff57

Matt Whitlock
Matt Whitlock
2015-04-26
SUCCESS Duration: 139s

Subject

Bionic lacks tcdrain; provide a workaround

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/missing_syscalls.c+5 -0
@@ -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