how do I listen on a socket without sucking up all the CPU time?

Samuel A. Falvo II kc5tja at
Fri Oct 13 20:18:22 CEST 2000

On Fri, 13 Oct 2000 16:09:12 GMT, Grant Edwards wrote:
>You're wrong on this. ;)
> <snip>
>When the stuff in the middle of for (;;) loop decides something
>has_ happened that we care about (by incrementing retval), the
>code at the bottom of the loop breaks out of the loop and sets
>the task state back to TASK_RUNNING, and the task starts
>running again.

Ahh...  Yup -- I apparently skipped over a few lines in the source code
while reading it.  I saw the state change to TASK_INTERRUPTABLE, but missed
the bottom portion of the loop.


KC5TJA/6, DM13, QRP-L #1447 | Official Channel Saint, *Team Amiga*
Samuel A. Falvo II	    |
Oceanside, CA		    |

More information about the Python-list mailing list