HomePhorge

(Maint) Close filehandles after read in upstart
c0cb0fa0fd3cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(Maint) Close filehandles after read in upstart

Not closing the filehandle after reading leaves a File object floating
around with an open handle. On unix systems this is ok, but on Windows
this causes a problem for the subsequent move of the new file into
place.

This changes to reading of a file to ensure that the file handle is
closed after we finish reading.

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU20c3da38aca4: Update CHANGELOG, conf/redhat/puppet.spec for 2.7.15rc3
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUc0cb0fa0fd3c: (Maint) Close filehandles after read in upstart (authored by Andrew Parker <andy@puppetlabs.com>).May 30 2012, 9:45 PM