Re: git: 2cf6bc1add64 - main - java/openjdk*: Update pkg-message information about fdescfs and procfs
- Reply: Alex Dupre : "Re: git: 2cf6bc1add64 - main - java/openjdk*: Update pkg-message information about fdescfs and procfs"
- In reply to: Baptiste Daroussin : "Re: git: 2cf6bc1add64 - main - java/openjdk*: Update pkg-message information about fdescfs and procfs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jan 2025 14:45:51 UTC
On Mon 06 Jan 17:30, Baptiste Daroussin wrote: > A quick grep in the source code seems to show /proc is only used for a message > that print how to debug: > > jio_snprintf(buf, sizeof(buf), "gdb /proc/%d/exe %d" > > The only usecase I can see for /dev/fd is for > Java_com_sun_management_internal_OperatingSystemImpl_getOpenFileDescriptorCount0 > > Which should not be hard to patch using sysctl(kern.proc.nfds) > > Best regards, > Bapt > tested on openjdk17 after applying the following patch: https://people.freebsd.org/~bapt/patch-src_jdk.management_unix_native_libmanagement__ext_OperatingSystemImpl.c I can't find a place which requires either /proc or /dev/fd left (maybe there is I have not find it yet) Bapt