Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vuntz:11.4-testing
glib2
glib2-spawn-sigs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glib2-spawn-sigs.patch of Package glib2
Index: glib-2.28.0/gio/gdbusaddress.c =================================================================== --- glib-2.28.0.orig/gio/gdbusaddress.c +++ glib-2.28.0/gio/gdbusaddress.c @@ -41,6 +41,7 @@ #ifdef G_OS_UNIX #include <gio/gunixsocketaddress.h> +#include <signal.h> #include <sys/wait.h> #endif @@ -993,6 +994,8 @@ get_session_address_dbus_launch (GError gint exit_status; gchar *old_dbus_verbose; gboolean restore_dbus_verbose; + gboolean spawned; + void *old_sighandler; ret = NULL; machine_id = NULL; @@ -1036,11 +1039,15 @@ get_session_address_dbus_launch (GError _g_dbus_debug_print_unlock (); } - if (!g_spawn_command_line_sync (command_line, - &launch_stdout, - &launch_stderr, - &exit_status, - error)) + old_sighandler = signal (SIGCHLD, SIG_DFL); + spawned = g_spawn_command_line_sync (command_line, + &launch_stdout, + &launch_stderr, + &exit_status, + error); + signal (SIGCHLD, old_sighandler); + + if (!spawned) { g_prefix_error (error, _("Error spawning command line `%s': "), command_line); goto out;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor