HomePhorge

(#12188) Better handling of PID file cleanup warnings.
3310470edfe3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#12188) Better handling of PID file cleanup warnings.

Previously everyone who invoked the unlock method of our pid file code would
duplicate all the internal logic to issue a warning, but only if we tried and
failed to delete the PID file.

This seems redundant compared to just pushing that down to the code that
actually fails, which this commit does.

Along the way it helps ensure that we don't warn unnecessarily about PID file
deletion, and adds tests to validate that.

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
rPU6ba92c95c103: Merge pull request #413 from stschulte/ticket/2.7.x/12197
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU3310470edfe3: (#12188) Better handling of PID file cleanup warnings. (authored by Daniel Pittman <daniel@puppetlabs.com>).Jan 27 2012, 2:35 AM