embedded python - cancel "while 1: pass"

D-Man dsh8290 at rit.edu
Wed Jan 3 13:48:29 EST 2001


Just brainstorming here:

you could inspect the code for such constructs and not execute those

you could execute the code in a separate thread, and that thread must
send a signal to the parent thread at given intervals,  if the thread
doesn't respond, it must be bad so kill it  (this is similar to a
watchdog timer from processor level operation)

HTH,
-D





More information about the Python-list mailing list