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

Changeset e3fa92aa in mainline


Ignore:
Timestamp:
2009-06-16T18:31:55Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
fbbbb8a
Parents:
103e7d7
Message:

Replace one hack with another.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/getvc/getvc.c

    r103e7d7 re3fa92aa  
    8484        stdout = fopen(argv[1], "w");
    8585        stderr = fopen(argv[1], "w");
     86
     87        /*
     88         * FIXME: fopen() should actually detect that we are opening a console
     89         * and it should set line-buffering mode automatically.
     90         */
     91        setvbuf(stdout, NULL, _IOLBF, BUFSIZ);
    8692       
    8793        if ((stdin == NULL)
     
    9197       
    9298        version_print(argv[1]);
    93         fflush(stdout);
    9499        task_id_t id = spawn(argv[2]);
    95100        task_wait(id);
Note: See TracChangeset for help on using the changeset viewer.