gst/gst.c: Print better details when child was terminated by signal.

Original commit message from CVS:
* gst/gst.c: (ensure_current_registry_forking):
Print better details when child was terminated by signal.
This commit is contained in:
Tim-Philipp Müller 2006-09-03 11:16:50 +00:00
parent 3a6b921f63
commit 6ef1f92e88
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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):

View file

@ -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;
}