diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-01 13:21:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-01 13:21:57 -0700 |
commit | eb619c04765ef31b0e88329cbfd138d24558776e (patch) | |
tree | 0c3e8f8c3b5ef9b39c0c164027b5e15e9ba46254 /test/unit | |
parent | 9dcbd1387c4c23c84f5a733b6e2e2839b239bdac (diff) | |
download | unicorn-eb619c04765ef31b0e88329cbfd138d24558776e.tar.gz |
There's always been a small window of opportunity for a script to do File.read(pid).to_i would cause File.read() to read an empty file and return "". This closes that window while hopefully retaining backwards compatibility... We've always checked for dirname(pid) writability in Configurator, so we can safely write to a temporary file in the intended directory and then atomically rename() it to the destination path.
Diffstat (limited to 'test/unit')
0 files changed, 0 insertions, 0 deletions