* dcrt0.cc (dll_crt0_1): Initialize thread and debug stuff before handling
exec/fork. * dtable.cc (dtable::fixup_after_exec): Always clear out the read ahead buffer whether closing or adjusting. * path.cc (chdir): Avoid a compiler warning.
This commit is contained in:
@@ -644,6 +644,10 @@ dll_crt0_1 ()
|
||||
|
||||
user_data->resourcelocks->Init ();
|
||||
user_data->threadinterface->Init0 ();
|
||||
|
||||
threadname_init ();
|
||||
debug_init ();
|
||||
|
||||
regthread ("main", GetCurrentThreadId ());
|
||||
|
||||
char **envp = NULL;
|
||||
@@ -713,9 +717,6 @@ dll_crt0_1 ()
|
||||
/* Initialize events. */
|
||||
events_init ();
|
||||
|
||||
threadname_init ();
|
||||
debug_init ();
|
||||
|
||||
/* Allow backup semantics. It's better done only once on process start
|
||||
instead of each time a file is opened. */
|
||||
set_process_privileges ();
|
||||
|
Reference in New Issue
Block a user