* 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:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user