From ebf2f5aaddcb81ba39692b716ed9ad658df27cd8 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 11 May 2009 10:38:46 -0700 Subject: ruby: Check stderr and not stdin before hanging on an assert. --- src/mem/slicc/slicc_global.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/slicc') 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;\ -- cgit v1.2.3