[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xorg bug returns: Too many files open in system
From: |
Samuel Thibault |
Subject: |
Re: Xorg bug returns: Too many files open in system |
Date: |
Sun, 7 Nov 2021 16:00:16 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Hello,
Sergey Bugaev, le sam. 06 nov. 2021 17:33:14 +0300, a ecrit:
> On Sat, Nov 6, 2021 at 3:16 PM Samuel Thibault <samuel.thibault@gnu.org>
> wrote:
> > To exercise it you can probably move
> > sysdeps/unix/sysv/linux/tst-close_range.c to misc/,
> > and add it to tests in sysdeps/mach/hurd/Makefile too.
>
> That doesn't seem to work: it uses support_descriptors_* () which
> walks over /proc/self/fd/ which procfs doesn't implement — though I
> guess it could, via msg_get_dtable () & msg_get_fd () and even
> FS_RETRY_MAGICAL.
It'd probably not that simple, because self/ is actually just a
magic retry on the pid variable, so in the end you'd be just opening
/proc/<callerpid>/fd. Exposing fd there with a magic retry would expose
the fd of the _caller_ in all /proc/*/, which is not what we want: we
want the fd/ there to be per-pid.
> Is there some way to add sysdep-specific implementations of support/
> functions?
I see #ifdef __linux__ there so I guess adding #ifdef __GNU__ there
would be fine.
> If not, is it still worth it to move the test to misc (and
> have it fail)?
I'd say so, so we can keep notice that there's something to fix there,
and not forget to run the tests.
I assume you have tested your glibc patch with your own baked test?
Samuel
- Xorg bug returns: Too many files open in system, Almudena Garcia, 2021/11/05
- Re: Xorg bug returns: Too many files open in system, Sergey Bugaev, 2021/11/06
- Re: Xorg bug returns: Too many files open in system,
Samuel Thibault <=
- Re: Xorg bug returns: Too many files open in system, Sergey Bugaev, 2021/11/07
- Re: Xorg bug returns: Too many files open in system, Samuel Thibault, 2021/11/07
- Re: Xorg bug returns: Too many files open in system, Sergey Bugaev, 2021/11/07
- [PATCH] hurd: Implement close_range and closefrom, Sergey Bugaev, 2021/11/06
- Re: [PATCH] hurd: Implement close_range and closefrom, Samuel Thibault, 2021/11/07
- Re: [PATCH] hurd: Implement close_range and closefrom, Adhemerval Zanella, 2021/11/07