Skip to content
Snippets Groups Projects
Commit f90c9ac0 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

port 2ac1f6bbb78baa51a81762d2340dd60657d65726 from Pd-l2ork: hopefully fixed...

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.
parent 0570839b
No related branches found
No related tags found
No related merge requests found
...@@ -272,6 +272,11 @@ static void shell_anything(t_shell *x, t_symbol *s, int ac, t_atom *at) ...@@ -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) void shell_free(t_shell* x)
{ {
if (x->fdpipe[0] != -1)
{
kill(x->pid,SIGKILL);
shell_cleanup(x);
}
binbuf_free(x->x_binbuf); binbuf_free(x->x_binbuf);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment