Skip to content

Commit

Permalink
redirect stdout and stderr to /dev/null for now
Browse files Browse the repository at this point in the history
svn path=/trunk/ncurses/; revision=44657
  • Loading branch information
Stefan Hundhammer committed Feb 19, 2008
1 parent e1942b4 commit 3e10a9a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/NCurses.cc
Expand Up @@ -629,10 +629,7 @@ void NCurses::ForgetDlg( NCDialog * dlg_r )
//
void NCurses::RedirectToLog()
{
#warning redirect stderr to log

#if 0
string log = get_log_filename();
string log = "/dev/null"; // this used to be get_log_filename()

yuiMilestone() << "isatty(stderr)" << (isatty(2) ? "yes" : "no") << endl;
if (isatty(2) && theTerm) {
Expand All @@ -647,9 +644,8 @@ void NCurses::RedirectToLog()
close(1);
open(log.c_str(), O_APPEND | O_CREAT, 0666);
}
#endif

}

///////////////////////////////////////////////////////////////////
//
//
Expand Down

0 comments on commit 3e10a9a

Please sign in to comment.