Home GnuPG

Improve getting of max. number of open fds.
7101fcbb6622Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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

Provenance
wernerAuthored on Jan 15 2016, 3:17 PM
Parents
rAd271ed79fe69: Post release updates.
Branches
Unknown
Tags
Unknown