Improve getting of max. number of open fds.

Authored by werner on Jan 15 2016, 3:17 PM.

Description

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>

Details

Committed
wernerJan 15 2016, 3:17 PM
Parents
rAd271ed79fe69: Post release updates.
Branches
Unknown
Tags
Unknown
Werner Koch <wk@gnupg.org> committed rA7101fcbb6622: Improve getting of max. number of open fds. (authored by Werner Koch <wk@gnupg.org>).Jan 15 2016, 3:17 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:08 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:31 PM