commit d4d4b4299d0d4ae4fe03c67865cb0681408d832e parent 29ad0b79026ad18dd6e2c491f8c6b4ea6f164854 Author: Michael Savage <mikejsavage@gmail.com> Date: Fri Dec 2 20:58:37 +0200 Use stderr in autogdb Diffstat:
autogdb.h | | | 2 | +- |
diff --git a/autogdb.h b/autogdb.h @@ -44,7 +44,7 @@ static void prompt_to_run_gdb( int signal ) { char crashed_pid[ 16 ]; snprintf( crashed_pid, sizeof( crashed_pid ), "%d", getpid() ); - printf( "\nPID %s received %s. Debug? (y/n)\n", crashed_pid, signal_names[ signal ] ); + fprintf( stderr, "\nPID %s received %s. Debug? (y/n)\n", crashed_pid, signal_names[ signal ] ); char buf[ 2 ]; read( STDIN_FILENO, &buf, sizeof( buf ) );