btreplay: make Ctrl-C work
[blktrace.git] / btreplay / btreplay.c
index 5bf47ffe693b2592274f4159567a396e3eec7451..321851c34f0632824b85bfd4086412de70e881d1 100644 (file)
@@ -275,7 +275,7 @@ static inline int is_send_done(struct thr_info *tip)
  */
 static inline int is_reap_done(struct thr_info *tip)
 {
-       return tip->send_done && tip->naios_out == 0;
+       return signal_done || (tip->send_done && tip->naios_out == 0);
 }
 
 /**