[PD-dev] quitting pd
Thomas Grill
t.grill at gmx.net
Wed Jul 2 19:42:22 CEST 2003
Hi Miller, hi all,
i noticed that there is a sys_quit flag in m_schedule.c that, when set,
causes PD to exit.
Is there any reason that _exit() is used (in sys_bail) instead of this flag,
which would be much cleaner and the better choice for applications which
just load pd as a shared library and still have the control when PD has
terminated (e.g. for restarting PD again).
I tried and naturally there is a short delay and an "audio stuck" console
printout, but this is purely cosmetical and can be suppressed as well.
If you find _exit to be the better choice one could still add a pd_quit()
function which sets the sys_quit flag.
best greetings,
Thomas
More information about the Pd-dev
mailing list