| Index: Source/wtf/DataLog.cpp
|
| diff --git a/Source/wtf/DataLog.cpp b/Source/wtf/DataLog.cpp
|
| index e36204e2d108080ac59761756fa48774748a43ad..cba35675232c9bbba96849773330832c9fed2b5d 100644
|
| --- a/Source/wtf/DataLog.cpp
|
| +++ b/Source/wtf/DataLog.cpp
|
| @@ -20,7 +20,7 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| #include "config.h"
|
| @@ -70,7 +70,7 @@ static void initializeLogFileOnce()
|
| #endif // DATA_LOG_TO_FILE
|
| if (!file)
|
| file = new FilePrintStream(stderr, FilePrintStream::Borrow);
|
| -
|
| +
|
| setvbuf(file->file(), 0, _IONBF, 0); // Prefer unbuffered output, so that we get a full log upon crash or deadlock.
|
| }
|
|
|
|
|