cleanup: avoid redundant error checks for fstat
commit49acd52b3f67d5be433babc38a28ea6865af38a5
authorEric Wong <normalperson@yhbt.net>
Fri, 30 Oct 2009 05:47:37 +0000 (29 22:47 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 30 Oct 2009 05:47:37 +0000 (29 22:47 -0700)
treef88912153a27984177df1b6e19c3eb38361b0560
parent2f497f7c47730522418e44d9de49ee962e47ff2e
cleanup: avoid redundant error checks for fstat

If fstat() fails on an open file descriptor in the master,
something is seriously wrong (like your kernel is broken/buggy)
and trying to restart the worker that owned that file descriptor
is likely masking the symptoms.  Instead let the error propagate
up to the main loop to avoid wasting cycles to restart broken
workers.
lib/unicorn.rb