From f90c9ac0ceb493bdddd94f5caf88900d5bcb58ec Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 1 Jun 2016 21:18:49 -0400 Subject: [PATCH] port 2ac1f6bbb78baa51a81762d2340dd60657d65726 from Pd-l2ork: hopefully fixed shell external's occasional crash where free function is called in the middle of a process and therefore clock_delay fires with null pointer. --- externals/ggee/control/shell.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/externals/ggee/control/shell.c b/externals/ggee/control/shell.c index f71ddceed..8ecb52bd1 100644 --- a/externals/ggee/control/shell.c +++ b/externals/ggee/control/shell.c @@ -272,6 +272,11 @@ static void shell_anything(t_shell *x, t_symbol *s, int ac, t_atom *at) void shell_free(t_shell* x) { + if (x->fdpipe[0] != -1) + { + kill(x->pid,SIGKILL); + shell_cleanup(x); + } binbuf_free(x->x_binbuf); } -- GitLab