Changeset 6568225 in mainline


Ignore:
Timestamp:
2009-05-03T09:01:19Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b6d70d
Parents:
8e7afdbc
Message:

Fix incorrect serialization in console, which could lead to the console server getting stuck.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    r8e7afdbc r6568225  
    504504                ipc_answer_0(callid, EINVAL);
    505505                ipc_answer_0(rid, EINVAL);
     506                return;
    506507        }
    507508
     
    510511
    511512        (void) ipc_data_write_finalize(callid, cwrite_buf, size);
     513
     514        async_serialize_start();
    512515
    513516        off = 0;
     
    516519                write_char(consnum, ch);
    517520        }
     521
     522        async_serialize_end();
    518523
    519524        gcons_notify_char(consnum);
     
    576581                        break;
    577582                case CONSOLE_WRITE:
     583                        async_serialize_end();
    578584                        cons_write(consnum, callid, &call);
     585                        async_serialize_start();
    579586                        continue;
    580587                case CONSOLE_CLEAR:
Note: See TracChangeset for help on using the changeset viewer.