28 TRedirect(
const char* newOut,
const char* newErr,
bool append =
true)
33 explicit TRedirect(
const char* newOut,
bool append =
true)
62 int newStdOut = open(
fOutFile, (append ? O_WRONLY | O_CREAT | O_APPEND : O_WRONLY | O_CREAT), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
63 dup2(newStdOut, fileno(stdout));
69 int newStdErr = open(
fErrFile, (append ? O_WRONLY | O_CREAT | O_APPEND : O_WRONLY | O_CREAT), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
70 dup2(newStdErr, fileno(stderr));
TRedirect(const char *newOut, const char *newErr, bool append=true)
void Redirect(bool append)
TRedirect(const char *newOut, bool append=true)
TRedirect(const TRedirect &)=delete
int fStdErrFileDescriptor
TRedirect & operator=(const TRedirect &)=delete
TRedirect & operator=(TRedirect &&)=delete
TRedirect(TRedirect &&)=delete
int fStdOutFileDescriptor