[PD] how to kill all [shell]'s child before quitting Pd

Jack jack at rybn.org
Tue May 28 20:34:35 CEST 2013


Le 28/05/2013 20:14, Antoine Villeret a écrit :
> hi, 
>
> I'm calling a new instance of Pd inside a Pd patch with [shell]
> but I notice I can't quit the main pd instance if a process is still
> running inside the [shell]
>
> the GUI hangs until the process ends (until I quit Pd)
> since the child pd is running without gui, 
>
> 1) is it possible to exit a running process via [shell] ?
> for example how could I send a ^c (ctrl+c) command ?
>
> 2) moreover, how to trig it when I press ctrl+Q or menu quit ?
>
> 3) the [noquit] abstraction gives me a tcl error : "can't rename
> menu_quit command doesn't exists"
>
> I'm running pd vanilla 0.44-2
>
> thanks for help
>
> antoine
>
> --
> do it yourself                      
> http://antoine.villeret.free.fr
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello Antoine,

With the message [pd & echo $!( to [shell], you should get the PID of
the subprocess. A [kill number_PID( to [shell] should kill this subprocess.
++

Jack


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130528/e52efe68/attachment.htm>


More information about the Pd-list mailing list