diff options
author | Steve Reinhardt <stever@gmail.com> | 2008-08-04 00:40:31 -0400 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2008-08-04 00:40:31 -0400 |
commit | fe8aeff362844838c60ff31e444573fb7e9a7793 (patch) | |
tree | 8796c12b47ecc9609de9215a92d1bce306a6cf0d /src/base | |
parent | 50ef39af82413ef463609f24173b22af13fad268 (diff) | |
download | gem5-fe8aeff362844838c60ff31e444573fb7e9a7793.tar.xz |
Add -r/-e options to redirect stdout/stderr.
Better than using shell since it automatically uses -d directory
for output files (creating it as needed).
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/output.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/base/output.cc b/src/base/output.cc index 5a1768a76..5a0f2ea70 100644 --- a/src/base/output.cc +++ b/src/base/output.cc @@ -60,12 +60,6 @@ OutputDirectory::setDirectory(const string &d) dir = d; - if (dir != ".") { - if (mkdir(dir.c_str(), 0777) < 0 && errno != EEXIST) - panic("couldn't make output dir %s: %s\n", - dir, strerror(errno)); - } - // guarantee that directory ends with a '/' if (dir[dir.size() - 1] != '/') dir += "/"; |