logging: rename_output_file -> handle_pid_change

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
This commit is contained in:
Colin Patrick McCabe 2010-12-07 18:51:35 -08:00
parent 116478a3be
commit e597d02d42
2 changed files with 5 additions and 3 deletions

View File

@ -313,9 +313,11 @@ set_prio(int prio)
this->pbump(2);
}
// call after calling daemon()
// Call after calling daemon()
// A change in the process ID sometimes requires us to change our output
// path name.
template <typename charT, typename traits>
int DoutStreambuf<charT, traits>::rename_output_file()
int DoutStreambuf<charT, traits>::handle_pid_change()
{
Mutex::Locker l(_dout_lock);
if (!(flags & DOUTSB_FLAG_OFILE))

View File

@ -59,7 +59,7 @@ public:
// Set the priority of the messages being put into the stream
void set_prio(int prio);
int rename_output_file();
int handle_pid_change();
std::string config_to_str() const;