Force FD_CLOEXEC on all potentially open descriptors
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Jun 2008 07:08:37 +0000 (10:08 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 24 Jun 2008 07:08:37 +0000 (10:08 +0300)
commitaa9a791d808f504781d0b75255df3387383a1809
tree0284331efc05a26f1b5d4cee7f9f6a7ea4cf8031
parentf39d2432f74bdc328ceafa8abc6cac517e02c73b
Force FD_CLOEXEC on all potentially open descriptors
- instead of just "100 should be large enough", use sysconf() to grab
  number of max open files and do them all. If sysconf() fails,
  use 1024 as "should be enough for everybody"
lib/psm.c