changeset 11971:51ce0e43c33f

. Fix a regression introduced by mismerging AIX support. FreeBSD needs to read the number of file descriptors from /dev/fd, not /proc/self/fd. This was submitted independently by both Kurt (e-mail) and Jung-uk (committed in the FreeBSD ports tree). Authored by: Kurt Miller <kurt@intricatesoftware.com> Jung-uk Kim <jkim@FreeBSD.org>
author Greg Lewis <glewis@eyesbeyond.com>
date Thu, 29 Dec 2016 19:59:51 -0800
parents a2daf1000075
children 48bd53dd46d8
files src/solaris/native/sun/management/OperatingSystemImpl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/management/OperatingSystemImpl.c	Mon Dec 19 15:56:12 2016 -0500
+++ b/src/solaris/native/sun/management/OperatingSystemImpl.c	Thu Dec 29 19:59:51 2016 -0800
@@ -502,6 +502,8 @@
 #define FD_DIR aix_fd_dir
     char aix_fd_dir[32];     /* the pid has at most 19 digits */
     snprintf(aix_fd_dir, 32, "/proc/%d/fd", getpid());
+#elif defined(_ALLBSD_SOURCE)
+#define FD_DIR "/dev/fd"
 #else
 #define FD_DIR "/proc/self/fd"
 #endif