diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c index 745e692903..d40b4f23f5 100644 --- a/libgimpbase/gimputils.c +++ b/libgimpbase/gimputils.c @@ -1252,6 +1252,11 @@ gimp_stack_trace_print (const gchar *prog_name, waitpid (pid, &status, 0); +#ifdef PR_SET_PTRACER + /* Clear ptrace permission set above */ + prctl (PR_SET_PTRACER, 0, 0, 0, 0); +#endif + while ((read_n = read (out_fd[0], buffer, 256)) > 0) { /* It's hard to know if the debugger was found since it