* cygheap.cc (cygheap_fixup_in_child): Here.
* debug.cc (delete_handle): Here.
* sigproc.cc (child_info_spawn::cleanup): Here.
* spawn.cc (child_info_spawn::worker): Here.
2011-11-13 Christopher Faylor <me.cygwin2011@cgf.cx>
+ Remove erroneously checked-in debugging statements.
+ * cygheap.cc (cygheap_fixup_in_child): Here.
+ * debug.cc (delete_handle): Here.
+ * sigproc.cc (child_info_spawn::cleanup): Here.
+ * spawn.cc (child_info_spawn::worker): Here.
+
+2011-11-13 Christopher Faylor <me.cygwin2011@cgf.cx>
+
Throughout, change "sig %d" in strace output to "signal %d" for
consistency.
* assert.cc (__assert_func): Output assertion string to strace too.
cygheap_max = cygheap = (init_cygheap *) _cygheap_start;
_csbrk ((char *) child_proc_info->cygheap_max - (char *) cygheap);
child_copy (child_proc_info->parent, false, "cygheap", cygheap, cygheap_max, NULL);
-debug_printf ("HERE");
cygheap_init ();
-debug_printf ("HERE 2");
debug_fixup_after_fork_exec ();
-debug_printf ("HERE 2, %d", execed);
if (execed)
{
cygheap->hooks.next = NULL;
_cfree (ce); /* Marked by parent for freeing in child */
}
}
-debug_printf ("HERE 3, %d", execed);
}
int
void
debug_fixup_after_fork_exec ()
{
-debug_printf ("BEFORE");
/* No lock needed at this point */
handle_list *hl;
for (hl = &cygheap->debug.starth; hl->next != NULL; /* nothing */)
hl = hl->next;
else
delete_handle (hl); // removes hl->next
-debug_printf ("AFTER");
}
static bool __stdcall
CloseHandle (ev);
ev = NULL;
}
-debug_printf ("type %d, type == _CH_EXEC == %d, hExeced %p", type, type == _CH_EXEC, hExeced);
if (type == _CH_EXEC)
{
if (iscygwin () && hExeced)
-{debug_printf ("cleaning up");
proc_subproc (PROC_EXEC_CLEANUP, 0);
-}
sync_proc_subproc.release ();
}
type = _CH_NADA;
}
out:
-debug_printf ("about to call cleanup");
this->cleanup ();
if (envblock)
free (envblock);