RDI code busy-waiting on running target?

Andrew Cagney ac131313@ges.redhat.com
Sun Jul 14 10:04:00 GMT 2002


> +    struct timeval timeout;
> +    timeout.tv_sec = 0;
> +    timeout.tv_usec = 10000;
> +
> +    select(0,0,0,0,&timeout);
> +    

Doing a select on nothing strikes me as wrong.  How is this code 
detecting that something is ``ready''?

Andrew




More information about the Gdb-patches mailing list