Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 422fd81 in mainline


Ignore:
Timestamp:
2009-04-24T14:56:46Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
c07544d3
Parents:
3c101bd4
Message:

push newline to stdin only if the kconsole was previously silent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    r3c101bd4 r422fd81  
    125125void grab_console(void)
    126126{
     127        bool prev = silent;
     128       
    127129        silent = false;
    128130        arch_grab_console();
    129131       
    130132        /* Force the console to print the prompt */
    131         if (stdin)
     133        if ((stdin) && (prev))
    132134                indev_push_character(stdin, '\n');
    133135}
Note: See TracChangeset for help on using the changeset viewer.