aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-10-29 21:08:34 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-10-29 21:08:34 +0000
commit2fa224b17de008093f790d00a401a8db1e1c5feb (patch)
treee0fa359f21eae714ed2a1b512df55baf5012f5f5 /sys
parent3ab5b6bd979c53e17056ed91f6fe6f0358ed72c9 (diff)
downloadsrc-2fa224b17de008093f790d00a401a8db1e1c5feb.tar.gz
src-2fa224b17de008093f790d00a401a8db1e1c5feb.zip
Fix get_maxfds() in jevents
If RLIM_INFINITY == -1ULL (such as on macOS) the min() call will result in a value of less than 1 being returned. This causes nftw() to fail with EINVAL. While touching this file also fix includes to work on Linux/macOS and don't declare snprintf since it may have different attributes in the system headers there. Reviewed By: mmacy Approved By: brooks (mentor) Differential Revision: https://reviews.freebsd.org/D17682
Notes
Notes: svn path=/head/; revision=339880
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions