From a2fb826774517e7dcd6fbf4ec69dc0fba71b34f7 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 26 Aug 2004 21:30:59 +0000 Subject: [PATCH] Writing to stdin just doesn't seem right. Also, why not just FILE *tty = fopen(/dev/stderr, w); if you worried about it having been closed by the crashed parent? --- stepmania/src/archutils/Unix/CrashHandlerChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Unix/CrashHandlerChild.cpp b/stepmania/src/archutils/Unix/CrashHandlerChild.cpp index 2c434c93d8..aa7456ad5d 100644 --- a/stepmania/src/archutils/Unix/CrashHandlerChild.cpp +++ b/stepmania/src/archutils/Unix/CrashHandlerChild.cpp @@ -358,7 +358,7 @@ static void child_process() * write to /dev/tty instead. */ FILE *tty = fopen( "/dev/tty", "w" ); if( tty == NULL ) - tty = stdin; + tty = stderr; fprintf(tty, "\n"