On Sat, Jan 06, 2007 at 05:36:51PM +0000, Alex Owen wrote:
> I do not read or write ruby... but I think the problem lies in
> function setpidfile in the file puppet-0.20.1/lib/puppet/daemon.rb
> 
> The code looks like:
>                Puppet.info "Creating PID file to %s" % @pidfile
>                begin
>                    File.open(@pidfile, "w") { |f| f.puts $$ }
> 
> BUT I don't see the file being closed or sync'd to disk.

The File.open line automatically closes the file again as well after it
executes the closure.  Ruby magic at it's finest.

> My suspision
> is that ruby needs another command/method to be called to commit this
> write to disk. Any ruby experts out there want to comment?

While there's certainly *something* going on there, that ain't it.

As of 0.22.0, though, the PID file handling has been reworked, so this bug
will go away when that gets packaged.

- Matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to