[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 2/2] Bionic lacks tcdrain; provide a workaround
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2015-04-26 11:15:20
Message-ID: CAK1hOcNp7kijxwsEo95QX72qfZOrTAzj16GnQc8qJRpsv1zifA () mail ! gmail ! com
[Download RAW message or body]
Applied, thanks
On Sat, Apr 25, 2015 at 12:48 AM, Matt Whitlock
<busybox@mattwhitlock.name> wrote:
> ---
> libbb/missing_syscalls.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c
> index c768f11..1e2507d 100644
> --- a/libbb/missing_syscalls.c
> +++ b/libbb/missing_syscalls.c
> @@ -39,6 +39,11 @@ 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
>
> #ifndef HAVE_TTYNAME_R
> --
> 2.0.5
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic