embedding: forcing an interpreter to end

2004-12-19 Thread pdectm
I'm trying to prototype an application which runs multiple python scripts, each in its own interpreter and OS thread. I've not been able to forceable stop a script which does not respond to a request to stop. My thought was to simply call: PyThreadState_Clear(xxx); PyThreadState_Delete(xxx); //

Re: embedding: forcing an interpreter to end

2004-12-21 Thread pdectm
> Is there any signal handler you can use in your C program? Maybe signling > yourself will get the control back to the C program and then you can kill > the interpreter. Well, the app is multi-threaded, so I do have a big issue getting control back to my C program. I just can not seem to cleanly