Changeset 5634:7ad2a55f0205 in roaraudio for libroar
- Timestamp:
- 08/24/12 13:52:47 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_cmd.c
r5619 r5634 308 308 int nonblock = state->options & ROAR_VIO_CMD_OPTS_NONBLOCK; 309 309 int in, out; 310 int eating = 1;311 310 312 311 ROAR_DBG("roar_vio_cmd_read(*) = ?"); … … 326 325 out = state->reader.out; 327 326 328 while (done < count || eating) {327 while (done < count) { 329 328 if ( nonblock ) { 330 329 tv.tv_sec = 0; … … 374 373 if ( out != -1 && FD_ISSET(out, wfhs) ) { 375 374 ROAR_DBG("roar_vio_cmd_read(*): event on writer"); 376 eating = 1;377 375 378 376 if ( !tlen ) { … … 392 390 state->reader.out = out = -1; 393 391 } 394 } else {395 eating = 0;396 392 } 397 393 }
Note: See TracChangeset
for help on using the changeset viewer.