mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 20:25:12 +01:00
Wait for the child process and then simply return. This makes The "S"
2005-08-15 Matthias Clasen <mclasen@redhat.com> * glib/gbacktrace.c (g_on_error_stack_trace): Wait for the child process and then simply return. This makes The "S" option work as documented in g_on_error_query(). (#313125, Matthew F. Barnes)
This commit is contained in:
parent
8c663934ca
commit
56a63c1568
@ -1,5 +1,10 @@
|
||||
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gbacktrace.c (g_on_error_stack_trace): Wait for
|
||||
the child process and then simply return. This makes
|
||||
The "S" option work as documented in g_on_error_query().
|
||||
(#313125, Matthew F. Barnes)
|
||||
|
||||
* glib/gunicode.h: Update the link to Unicode category
|
||||
values. (#313369, Behnam Esfahbod)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gbacktrace.c (g_on_error_stack_trace): Wait for
|
||||
the child process and then simply return. This makes
|
||||
The "S" option work as documented in g_on_error_query().
|
||||
(#313125, Matthew F. Barnes)
|
||||
|
||||
* glib/gunicode.h: Update the link to Unicode category
|
||||
values. (#313369, Behnam Esfahbod)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gbacktrace.c (g_on_error_stack_trace): Wait for
|
||||
the child process and then simply return. This makes
|
||||
The "S" option work as documented in g_on_error_query().
|
||||
(#313125, Matthew F. Barnes)
|
||||
|
||||
* glib/gunicode.h: Update the link to Unicode category
|
||||
values. (#313369, Behnam Esfahbod)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2005-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gbacktrace.c (g_on_error_stack_trace): Wait for
|
||||
the child process and then simply return. This makes
|
||||
The "S" option work as documented in g_on_error_query().
|
||||
(#313125, Matthew F. Barnes)
|
||||
|
||||
* glib/gunicode.h: Update the link to Unicode category
|
||||
values. (#313369, Behnam Esfahbod)
|
||||
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include <sys/times.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include <time.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
@ -161,6 +162,7 @@ g_on_error_stack_trace (const gchar *prg_name)
|
||||
pid_t pid;
|
||||
gchar buf[16];
|
||||
gchar *args[4] = { "gdb", NULL, NULL, NULL };
|
||||
int status;
|
||||
|
||||
if (!prg_name)
|
||||
return;
|
||||
@ -182,9 +184,7 @@ g_on_error_stack_trace (const gchar *prg_name)
|
||||
return;
|
||||
}
|
||||
|
||||
while (glib_on_error_halt)
|
||||
;
|
||||
glib_on_error_halt = TRUE;
|
||||
waitpid (pid, &status, 0);
|
||||
#else
|
||||
if (IsDebuggerPresent ())
|
||||
G_BREAKPOINT ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user