Thread is somehow interfering with a while loop called after the thread is started

dan.h.mcinerney at dan.h.mcinerney at
Sun Jul 28 04:29:53 CEST 2013

I have a simple scapy + nfqueue dns spoofing script that I want to turn into a thread within a larger program:

Below is my attempt to thread the program above. Somehow, the only way the while loop actually prints "running" is if the callback function is called consistently. If the callback function isn't started, the script will never print "running". How can that be if the while loop is AFTER the thread was started? Shouldn't the while loop and the thread operate independantly?

More information about the Python-list mailing list