Changes in uspace/app/tester/ipc/starve.c [bd41ac52:87822ce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/ipc/starve.c
rbd41ac52 r87822ce 57 57 cons_event_t ev; 58 58 usec_t timeout = 0; 59 bool has_event = console_get_event_timeout(console, &ev, &timeout); 60 if (has_event && ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS) { 61 TPRINTF("Key %d pressed, terminating.\n", ev.ev.key.key); 59 errno_t rc = console_get_event_timeout(console, &ev, &timeout); 60 if (rc == EOK) { 61 if (ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS) { 62 TPRINTF("Key %d pressed, terminating.\n", ev.ev.key.key); 63 break; 64 } 65 } else if (rc != ETIMEOUT) { 66 TPRINTF("Got rc=%d, terminating.\n", rc); 62 67 break; 63 68 }
Note:
See TracChangeset
for help on using the changeset viewer.