diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-05-11 10:38:46 -0700 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-05-11 10:38:46 -0700 |
commit | ebf2f5aaddcb81ba39692b716ed9ad658df27cd8 (patch) | |
tree | 915d7c7274cd3c4d72bc62de06cb1863f7085c7c /src/mem/slicc/slicc_global.hh | |
parent | 7769cc9092ccfd8c6c2286762631f0d0f1f16d04 (diff) | |
download | gem5-ebf2f5aaddcb81ba39692b716ed9ad658df27cd8.tar.xz |
ruby: Check stderr and not stdin before hanging on an assert.
Diffstat (limited to 'src/mem/slicc/slicc_global.hh')
-rw-r--r-- | src/mem/slicc/slicc_global.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/slicc_global.hh b/src/mem/slicc/slicc_global.hh index caa5509f8..3e4f37a57 100644 --- a/src/mem/slicc/slicc_global.hh +++ b/src/mem/slicc/slicc_global.hh @@ -67,7 +67,7 @@ const bool CHECK_INVALID_RESOURCE_STALLS = false; << __PRETTY_FUNCTION__ << " in "\ << __FILE__ << ":"\ << __LINE__ << endl;\ - if(isatty(STDIN_FILENO)) {\ + if(isatty(STDERR_FILENO)) {\ cerr << "At this point you might want to attach a debug to ";\ cerr << "the running and get to the" << endl;\ cerr << "crash site; otherwise press enter to continue" << endl;\ |