HomePhorge

(#8413) Properly clean up stale pidfile on Windows
2ab563408159Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8413) Properly clean up stale pidfile on Windows

This code uses 'kill 0' to determine whether a process is running with
the pid found in the pidfile. Typically, that will raise Errno::ESRCH if
no such process is running. However, the win32-process gem on Windows
changes this behavior to raise Process::Error instead. Thus, we need to
also catch Process::Error.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUa2ced0f6aaeb: Properly determine file deletion in puppet/unit/util_spec.rb
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPU2ab563408159: (#8413) Properly clean up stale pidfile on Windows (authored by Nick Lewis <nick@puppetlabs.com>).Aug 29 2011, 7:48 PM