inkel/fallen — pull request #5 by fsaravia (2014-05-19 16:20:36+00:00)
Title: Enable sync on logfiles after calling reopen

Calling `.reopen` on `STDOUT` and `STDERR` disables `sync`, buffering the log files in memory. This can lead to losing the log errors if the process dies unexpectedly.

````
2.1.1 :001 > STDERR.sync
=> true
2.1.1 :002 > STDERR.reopen 'err.log', 'a'
=> #
2.1.1 :003 > STDERR.sync
=> false
````

This PR enables `sync` again after calling reopen