[gnome-builder] supervisor: show exit code vs term signal in debug message
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] supervisor: show exit code vs term signal in debug message
- Date: Fri, 28 Oct 2016 22:16:05 +0000 (UTC)
commit c9f9914d2e29ac778b8dc65baf52dcf80aeeb159
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 28 15:15:47 2016 -0700
supervisor: show exit code vs term signal in debug message
libide/subprocess/ide-subprocess-supervisor.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/libide/subprocess/ide-subprocess-supervisor.c b/libide/subprocess/ide-subprocess-supervisor.c
index 123628a..f8955bd 100644
--- a/libide/subprocess/ide-subprocess-supervisor.c
+++ b/libide/subprocess/ide-subprocess-supervisor.c
@@ -316,8 +316,16 @@ ide_subprocess_supervisor_wait_cb (GObject *object,
if (!ide_subprocess_wait_finish (subprocess, result, &error))
g_warning ("%s", error->message);
- IDE_TRACE_MSG ("process exited with code: %u",
- ide_subprocess_get_exit_status (subprocess));
+#ifdef IDE_TRACE_ENABLED
+ {
+ if (ide_subprocess_get_if_exited (subprocess))
+ IDE_TRACE_MSG ("process exited with code: %u",
+ ide_subprocess_get_exit_status (subprocess));
+ else
+ IDE_TRACE_MSG ("process terminated due to signal: %u",
+ ide_subprocess_get_term_signal (subprocess));
+ }
+#endif
if (priv->subprocess == subprocess)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]