Issue #14964 has been updated by Josh Cooper.

Target version changed from 2.7.18 to 2.7.19


----------------------------------------
Bug #14964: Puppet fails to unlink stdout tempfile if child process is launched 
asynchronously
https://projects.puppetlabs.com/issues/14964#change-66732

Author: Josh Cooper
Status: Merged - Pending Release
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.19
Affected Puppet version: 2.7.6
Keywords: windows exec start
Branch: https://github.com/puppetlabs/puppet/pull/849


Executing the following generates an error because the notepad.exe process 
inherits a copy of the stdout tempfile handle, preventing puppet from being 
able to unlink it:

<pre>
c:/work/puppet> envpuppet puppet apply -e "exec { 'cmd.exe /c start 
notepad.exe': path => $path }" --trace
c:/puppetwinbuilder/sys/ruby/lib/ruby/1.8/tempfile.rb:170:in `unlink'
c:/puppetwinbuilder/sys/ruby/lib/ruby/1.8/tempfile.rb:170:in `callback'
c:/puppetwinbuilder/sys/ruby/lib/ruby/1.8/tempfile.rb:119:in `call'
c:/puppetwinbuilder/sys/ruby/lib/ruby/1.8/tempfile.rb:119:in `close!'
c:/puppetwinbuilder/sys/ruby/lib/ruby/1.8/tempfile.rb:110:in `close'
c:/work/puppet/ext/../lib/puppet/util.rb:425:in `wait_for_output'
c:/work/puppet/ext/../lib/puppet/util.rb:418:in `times'
c:/work/puppet/ext/../lib/puppet/util.rb:418:in `wait_for_output'
c:/work/puppet/ext/../lib/puppet/util.rb:401:in `execute'
...
err: /Stage[main]//Exec[cmd.exe /c start notepad.exe]/returns: change from 
notrun to 0 failed: Permission denied - 
C:/Users/albert/AppData/Local/Temp/puppet20120611-804-150gmfc-0
notice: Finished catalog run in 1.50 seconds
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to