Hi Miller, i use the sys_quit flag now in my experimental pd version and it terminates fine. For me, that seems to be the cleanest solution.
best greetings, Thomas
Let me try switching to exit() and see what breaks...
cheers Miller
On Wed, Jul 02, 2003 at 07:42:22PM +0200, Thomas Grill wrote:
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
PD-dev mailing list PD-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-dev