util: only consider regular files as logs
commit032791b9a367f67febbe7534f6ea4cac127e7897
authorEric Wong <normalperson@yhbt.net>
Tue, 2 Oct 2012 04:18:02 +0000 (1 21:18 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 2 Oct 2012 04:18:02 +0000 (1 21:18 -0700)
treec5676b1ee3f860e892fe6c767b514581f69ce86d
parent5acf5522295c947d3118926d1a1077007f615de9
util: only consider regular files as logs

If a user specifies a non-regular file for stderr_path or
stdout_path, we should not attempt to reopen or chown
it.  This should also allow users to specify FIFOs as log
destinations.
lib/unicorn/util.rb