On 05/11/2015 08:35 AM, Steven D'Aprano wrote:
On Mon, 11 May 2015 09:57 pm, Dave Angel wrote:
On 05/11/2015 07:46 AM, Skybuck Flying wrote:
Hello,

Sometimes it can be handy to "interrupt/reset/reposition" a running
script.

For example something externally goes badly wrong.

os.kill()

then in your process, handle the exception, and do whatever you think is
worthwhile.

Are you suggesting that the app sends itself a signal?

Is that even allowed?

No idea if it's allowed.  I didn't notice his sample was multithreaded, 
as i grabbed on the "externally goes badly wrong".


--
DaveA
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to