From 789d5bb4e0bfc7b5f47e8c54efee208da6415ad6 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 10 Jun 2006 11:47:42 +0000 Subject: [PATCH] gst/gst.c: use _exit() instead of exit() in our forked child; this ensures that none of the registered exit handlers ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: * gst/gst.c: (init_post): use _exit() instead of exit() in our forked child; this ensures that none of the registered exit handlers from whatever is using GStreamer get executed. This fixes gnome-mixer-applet failing to load, because ORBit would shut down. Spotted by: Edward Hervey Fix suggested by: Tim-Philipp Müller Fixes #344474 --- ChangeLog | 11 +++++++++++ gst/gst.c | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 24c09aabc0..4888c1a9bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2006-06-10 Thomas Vander Stichele + + * gst/gst.c: (init_post): + use _exit() instead of exit() in our forked child; this ensures + that none of the registered exit handlers from whatever is using + GStreamer get executed. This fixes gnome-mixer-applet failing + to load, because ORBit would shut down. + Spotted by: Edward Hervey + Fix suggested by: Tim-Philipp Müller + Fixes #344474 + 2006-06-09 Thomas Vander Stichele * configure.ac: diff --git a/gst/gst.c b/gst/gst.c index 83584306d0..dcebcfb52a 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -695,7 +695,9 @@ init_post (void) _gst_registry_remove_cache_plugins (default_registry); #ifdef HAVE_FORK - exit (0); + /* need to use _exit, so that any exit handlers registered don't + * bring down the main program */ + _exit (0); } else { /* parent */ int status;