gst/gst.c: Print better details when child was terminated by signal.
authorTim-Philipp Müller <tim@centricular.net>
Sun, 3 Sep 2006 11:16:50 +0000 (11:16 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 3 Sep 2006 11:16:50 +0000 (11:16 +0000)
Original commit message from CVS:
* gst/gst.c: (ensure_current_registry_forking):
Print better details when child was terminated by signal.

ChangeLog
gst/gst.c

index 28a3992..a6d03a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-09-03  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * gst/gst.c: (ensure_current_registry_forking):
+         Print better details when child was terminated by signal.
+
+2006-09-03  Tim-Philipp Müller  <tim at centricular dot net>
+
        * gst/gstregistryxml.c: (gst_registry_xml_save_feature):
          Print a warning rather than g_assert() if a plugin feature
          is a URI handler but returns no protocols (#353976).
index 1976212..4487893 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -723,7 +723,12 @@ ensure_current_registry_forking (GstRegistry * default_registry,
     }
 
     if (!WIFEXITED (status)) {
-      GST_ERROR ("child did not exit normally, status: %d", status);
+      if (WIFSIGNALED (status)) {
+        GST_ERROR ("child did not exit normally, terminated by signal %d",
+            WTERMSIG (status));
+      } else {
+        GST_ERROR ("child did not exit normally, status: %d", status);
+      }
       return FALSE;
     }