help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cout/cerr stops working


From: Al Slater
Subject: cout/cerr stops working
Date: Fri, 21 Oct 2005 12:59:32 +0100
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Hi,

We have a server program that logs by streaming the log messages to
cout/cerr.  cout and cerr are redirected to a log file by using freopen
on stdout and stderr (done by the parent process after fork, but before
exec).

The server program has many instances running concurrently, logging to
the same file.

This all works fine most of the time, but occassionally, when under
heavy load, the cout/cerr streaming stops working.  Any log messages
written using fprintf still work.

This is all compiled using gcc 3.4.4 on Solaris 9.

Any ideas anyone?

Al


reply via email to

[Prev in Thread] Current Thread [Next in Thread]