HomePhorge

Recover better when `maxgroups` is not implemented.
8a6af16f2974Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Recover better when maxgroups is not implemented.

Puppet tries to bump up the maximum number of supplementary groups for the
process, which works only on Unix-like platform, in C-like implementations of
Ruby.

Previously there was a blacklist of platforms where this didn't work, which
means that as new platforms come along we failed in new and exciting ways.

Instead we can just rescue any failure from invoking the method and carry on,
which works for any failure mode including "not implemented" nicely.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU6c874b406c05: Forcibly remove temporary files in tests.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU8a6af16f2974: Recover better when `maxgroups` is not implemented. (authored by Daniel Pittman <daniel@puppetlabs.com>).Apr 19 2012, 12:08 AM