summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-12-16 17:18:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2007-12-16 17:18:45 +0000
commitb826e08294179e9b096f23098567b946f7e956bc (patch)
treef769a42c0fd81f8bcf68d37d1d4d3d67b0b4c44d
parentf8e3e1413b26bf95fdc6223f6ae67c3caddfb000 (diff)
Don't fiddle with SIGSTOP, rely on gdb attaching quicker than the signal.
-rw-r--r--src/app.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app.c b/src/app.c
index 6be4107..ec4fb18 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2145,11 +2145,8 @@ execute_cmdline_lwp (App *app, char **argv, gboolean attach_dbg, GError **error)
if (attach_dbg) {
gchar *cmd;
- kill (child, SIGSTOP);
-
cmd = g_strdup_printf ("gnome-terminal -x gdb --pid=%d", child);
- if (! g_spawn_command_line_async (cmd, NULL))
- kill (child, SIGCONT);
+ g_spawn_command_line_async (cmd, NULL);
g_free (cmd);
}