Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51378
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-07-27 19:29 -0700 |
| Message-ID | <416ade59-a3dc-47b1-b8d4-6f845ce1eaae@googlegroups.com> (permalink) |
| Subject | Thread is somehow interfering with a while loop called after the thread is started |
| From | dan.h.mcinerney@gmail.com |
I have a simple scapy + nfqueue dns spoofing script that I want to turn into a thread within a larger program: http://www.bpaste.net/show/HrlfvmUBDA3rjPQdLmdp/ 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? http://bpaste.net/show/0aCxSsSW7yHcQ7EBLctI/
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Thread is somehow interfering with a while loop called after the thread is started dan.h.mcinerney@gmail.com - 2013-07-27 19:29 -0700 Re: Thread is somehow interfering with a while loop called after the thread is started Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-07-28 13:17 +0200
csiph-web