30 static void handleCrash (int sig) |
30 static void handleCrash (int sig) |
31 { printf ("%s: crashed with signal %d, launching gdb\n", __func__, sig); |
31 { printf ("%s: crashed with signal %d, launching gdb\n", __func__, sig); |
32 |
32 |
33 if (g_crashCatcherActive) |
33 if (g_crashCatcherActive) |
34 { printf ("caught signal while crash catcher is active!\n"); |
34 { printf ("caught signal while crash catcher is active!\n"); |
35 return; |
35 exit (149); |
36 } |
36 } |
37 |
37 |
38 const pid_t pid = getpid(); |
38 const pid_t pid = getpid(); |
39 QProcess proc; |
39 QProcess proc; |
40 QTemporaryFile commandsFile; |
40 QTemporaryFile commandsFile; |