Changeset 7591b27d in mainline


Ignore:
Timestamp:
2009-10-15T20:55:51Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00413c5c
Parents:
7c7a3209
Message:

Working directory must be set only after initializing stdio, otherwise it claims fd 0, confusing stdio setup (effectively disabling stdout buffering).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/libc.c

    r7c7a3209 r7591b27d  
    8080                __stdio_init(0, NULL);
    8181        } else {
    82                 (void) chdir(__pcb->cwd);
    8382                argc = __pcb->argc;
    8483                argv = __pcb->argv;
    8584                __stdio_init(__pcb->filc, __pcb->filv);
     85                (void) chdir(__pcb->cwd);
    8686        }
    8787       
Note: See TracChangeset for help on using the changeset viewer.