Date: Tue, 7 Jan 2025 15:45:51 +0100 From: Baptiste Daroussin <bapt@freebsd.org> To: Alexander Leidinger <Alexander@leidinger.net> Cc: Xavier Beaudouin <kiwi@freebsd.org>, ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Subject: Re: git: 2cf6bc1add64 - main - java/openjdk*: Update pkg-message information about fdescfs and procfs Message-ID: <7xzcpi2yxlyvz34mok6knbnjmtskv3zbgcvdck2ooqexkakqi2@sg3hxhaabiqz> In-Reply-To: <jeleb3qieloqh5fubc4yg6rg4lqywpyhhcpq7makry3oe3lwun@qfcrtxkfshuk> References: <202501061418.506EIOj7078214@gitrepo.freebsd.org> <1943c291180.2805.fa4b1493b064008fe79f0f905b8e5741@Leidinger.net> <jeleb3qieloqh5fubc4yg6rg4lqywpyhhcpq7makry3oe3lwun@qfcrtxkfshuk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7xzcpi2yxlyvz34mok6knbnjmtskv3zbgcvdck2ooqexkakqi2>