Changeset 5db9084 in mainline for uspace/app/sbi/src/os/helenos.c


Ignore:
Timestamp:
2010-04-04T22:01:32Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
73060801
Parents:
59ecd4a
Message:

Ctrl-Q to quit CLUI application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/os/helenos.c

    r59ecd4a r5db9084  
    105105{
    106106        char *line;
     107        int rc;
    107108
    108109        if (tinput == NULL) {
     
    112113        }
    113114
    114         line = tinput_read(tinput);
    115         if (line == NULL)
     115        rc = tinput_read(tinput, &line);
     116        if (rc == ENOENT) {
     117                /* User-requested abort */
     118                *ptr = os_str_dup("");
     119                return EOK;
     120        }
     121
     122        if (rc != EOK) {
     123                /* Error in communication with console */
    116124                return EIO;
     125        }
    117126
    118127        /* XXX Input module needs trailing newline to keep going. */
Note: See TracChangeset for help on using the changeset viewer.