From 634d51d94ec5b563880787ba8dddf0add5771ee9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 24 Jul 2004 19:18:58 +0000 Subject: * dcrt0.cc (dll_crt0_0): Use proper boolean arguments. * pinfo.cc (pinfo::init): Don't consider MapViewOfFileEx error to be fatal if exiting. * pinfo.h (pinfo::init): Eliminate default argument and supply the argument in the one case that needed it. --- winsup/cygwin/dcrt0.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 6f99403b0..93568f5fd 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -665,7 +665,7 @@ dll_crt0_0 () { case _PROC_FORK: alloc_stack (fork_info); - cygheap_fixup_in_child (0); + cygheap_fixup_in_child (false); memory_init (); set_myself (mypid); close_ppid_handle = !!child_proc_info->pppid_handle; @@ -679,11 +679,11 @@ dll_crt0_0 () hexec_proc = spawn_info->hexec_proc; around: HANDLE h; - cygheap_fixup_in_child (1); + cygheap_fixup_in_child (true); memory_init (); if (!spawn_info->moreinfo->myself_pinfo || !DuplicateHandle (hMainProc, spawn_info->moreinfo->myself_pinfo, - hMainProc, &h, 0, 0, + hMainProc, &h, 0, FALSE, DUPLICATE_SAME_ACCESS | DUPLICATE_CLOSE_SOURCE)) h = NULL; set_myself (mypid, h); -- cgit v1.2.3