Browse Source

flush stdout before exit

Nicolas Cannasse 6 years ago
parent
commit
705fe7d14c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main.c

+ 1 - 0
src/main.c

@@ -79,6 +79,7 @@ static void handle_signal( int signum ) {
 	signal(signum, SIG_DFL);
 	printf("SIGNAL %d\n",signum);
 	hl_dump_stack();
+	fflush(stdout);
 	raise(signum);
 }
 static void setup_handler() {