Improve getting of max. number of open fds.
* configure.ac (AC_CHECK_FUNCS): Add getrlimit. * src/assuan-pipe-connect.c (MAX_OPEN_FDS): Remove non-used macro. * src/system.c (MAX_OPEN_FDS): Remove non-used macro. * src/system-posix.c: Include stdint.h, sys/time.h, sys/resource.h. (MAX_OPEN_FDS): Remove non-used macro. (get_max_fds): New. Taken from gnupg/common/exechelp-posix.c. (__assuan_spawn): Use it here.
This is related to
Changing of get_max_fds from LPGLv3+ to LGPLv2+ approved by me as sole
author or that code.
- GnuPG-bug-id: T2071
- Signed-off-by: Werner Koch <wk@gnupg.org>