HomePhorge

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

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
Matthaus Litteken <matthaus@puppetlabs.com>Committed on Feb 23 2012, 1:17 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU411828be395a: Merge pull request #5 from pcarlisle/ticket/2.7.x/12572-last-run-summary
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPU01b57e9c1a61: (#12188) Better handling of PID file cleanup warnings. (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 23 2012, 1:17 AM