Making control-c work with @spawn
is a very hard problem.
But I don’t think you need @spawn
here. Why not just use p = run(`play $args`; wait=false)
? You can then kill(p)
.
Making control-c work with @spawn
is a very hard problem.
But I don’t think you need @spawn
here. Why not just use p = run(`play $args`; wait=false)
? You can then kill(p)
.