Skip to content

Commit

Permalink
more cowbell
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Apr 17, 2023
1 parent 4b93ab8 commit 8775f1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions powers.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ int main(int argc,char *argv[]){
// Immediate poll if timeout is negative
if(timeout < 0)
timeout = 0;
printf("timeout %'lld\n",timeout);
struct timespec ts;
ns2ts(&ts,timeout);
n = pselect(n,&fdset,NULL,NULL,&ts,NULL);
if(n <= 0 && timeout == 0){
printf("select returned %d\n",n);
usleep(10000); // rate limit, just in case
goto again;
}
Expand Down

0 comments on commit 8775f1a

Please sign in to comment.