From 1255c0e2def7a2b3a66161f9e423e551cd5aa095 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 13 Sep 2010 23:39:37 +0300 Subject: [PATCH] * mu-cmd-index.c: improve C-c output a bit --- src/mu-cmd-index.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mu-cmd-index.c b/src/mu-cmd-index.c index 32e87b70..f3116156 100644 --- a/src/mu-cmd-index.c +++ b/src/mu-cmd-index.c @@ -53,6 +53,7 @@ static void sig_handler (int sig) { if (!MU_CAUGHT_SIGNAL && sig == SIGINT) { /* Ctrl-C */ + g_print ("\n"); g_warning ("Shutting down gracefully, " "press again to kill immediately"); } @@ -117,7 +118,10 @@ index_msg_cb (MuIndexStats* stats, void *user_data) static int i = 0; static int len = 0; - + + if (MU_CAUGHT_SIGNAL) + return MU_STOP; + while (len --> 0) /* note the --> operator :-) */ g_print ("\b");