Changeset 87822ce in mainline for uspace/app/top/screen.h


Ignore:
Timestamp:
2021-03-04T19:14:30Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d6c4d40
Parents:
760a392
Message:

Avoid infinite loop when console communication is broken

Need to make sure callers of console_get_event_timeout() can distinguish
between timeout and I/O error. Fix all callers of console_get_event()
and console_get_event_timeout() not to enter infinite loop when console
connection is broken. Also avoid setting of errno variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/screen.h

    r760a392 r87822ce  
    3535#define TOP_SCREEN_H_
    3636
     37#include <errno.h>
    3738#include <io/console.h>
    3839#include <io/verify.h>
     
    4748    _HELENOS_PRINTF_ATTRIBUTE(1, 2);
    4849
    49 extern int tgetchar(sec_t);
     50extern errno_t tgetchar(sec_t, int *);
    5051
    5152#endif
Note: See TracChangeset for help on using the changeset viewer.