HomePhorge

(#14964) Don't fail if we can't unlink the Tempfile on Windows
3ada85152dafUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14964) Don't fail if we can't unlink the Tempfile on Windows

Previously, if the exec resource created a process, e.g. start.exe, that
executed another process asynchronously, then the grandchild would inherit
the tempfile handle, preventing puppet from being able to unlink it. This
is not an issue on POSIX systems.

This commit changes the wait_for_output method to ignore Errno::EACCES
exceptions caused when closing and unlinking the stdout tempfile. The
behavior on POSIX systems is unchanged.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUda36281f07a6: Updated manpages, CHANGELOG, puppet.spec, puppet.rb for 2.7.16rc1.
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU3ada85152daf: (#14964) Don't fail if we can't unlink the Tempfile on Windows (authored by Josh Cooper <josh@puppetlabs.com>).Jun 12 2012, 12:59 AM