macournoyer/thin — pull request #122 by jlambert121 (2012-08-20 22:01:19+00:00)
Title: change PID file ownership to match process ownership so stop can remove PID files

Currently when thin is started as root but drops root privileges due to thin config the PID files are owned by root:root. This prevents thin stop from removing the PID files since the processes no longer have root privileges.

This patch adjusts the PID files to match the new user and group before dropping the privileges used to create the PID files.