* dcrt0.cc (__api_fatal): Simplify to just use strace mechamisms.

(do_exit): Move minimal_printf...
* pinfo.cc (pinfo::exit): ...into here.
* strace.cc (strace::vprntf): Guarantee output to the console when
system_printf/api_fatal.
* heap.cc (heap_init): Wait a second before issuing an error when
ERROR_INVALID_ADDRESS since this is probably due to a CTRL-C handler sneaking
in, using the memory that we want to use for the heap, and, eventually exiting.
This commit is contained in:
Christopher Faylor
2005-12-26 19:34:59 +00:00
parent c675040a06
commit a16b738dd5
5 changed files with 42 additions and 28 deletions

View File

@@ -139,6 +139,7 @@ pinfo::zap_cwd ()
void
pinfo::exit (DWORD n)
{
minimal_printf ("winpid %d, exit %d", GetCurrentProcessId (), n);
lock_process until_exit ();
cygthread::terminate ();