[sysprof/wip/chergert/control-fd] cli: print status before potentially blocking on stop



commit 73f38bcf3603bff3d4b55306baa77cca963bc036
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 11 17:01:56 2020 -0800

    cli: print status before potentially blocking on stop

 src/tools/sysprof-cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tools/sysprof-cli.c b/src/tools/sysprof-cli.c
index 0364f29..78296b3 100644
--- a/src/tools/sysprof-cli.c
+++ b/src/tools/sysprof-cli.c
@@ -56,8 +56,8 @@ sigint_handler (gpointer user_data)
 
   if (count == 0)
     {
-      sysprof_profiler_stop (profiler);
       g_printerr ("%s\n", _("Stopping profiler. Press twice more ^C to force exit."));
+      sysprof_profiler_stop (profiler);
     }
 
   count++;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]