dev_fd_response: weaken /dev/fd check for compatibility
commita8f16c6837b56f1a344e4686d029a9a068f69491
authorEric Wong <normalperson@yhbt.net>
Fri, 13 Aug 2010 20:37:46 +0000 (13 13:37 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 13 Aug 2010 20:37:46 +0000 (13 13:37 -0700)
treed4ca0e8b46e5afecf2d2e3d835327bba615f5cd1
parent047365a95fda8765d4339036d41f0cb5f30a1381
dev_fd_response: weaken /dev/fd check for compatibility

/dev/fd/0 may not be stat()-able on some systems after dropping
permissions from root to a regular user.  So just check for
"/dev/fd" which seems to work on RHEL 2.6.18 kernels.  This also
allow us to be used independently of Unicorn in case somebody
ever feels the compelling need to /close/ stdin.
lib/rainbows/dev_fd_response.rb