puppetlabs/puppet — pull request #411 by masterzen (2012-01-26 19:49:47+00:00)
Title: #12188 Prevent "Could not remove PID file" error message in --no-daemonize agent run

Fix for #5246 added a daemon.stop to the agent in the --no-daemonize
call path to properly remove the pid file.

But the daemon.remove_pid method didn't check the pidfile owner before
deciding it should remove it, and thus was producing this harmless error.