* fork.cc (fork_parent): Fix null deref if pinfo creation fails.
This commit is contained in:
parent
e61d5b9790
commit
f834829dee
@ -1,3 +1,7 @@
|
|||||||
|
2005-07-29 Arto Huusko <arto.huusko@wmdata.fi>
|
||||||
|
|
||||||
|
* fork.cc (fork_parent): Fix null deref if pinfo creation fails.
|
||||||
|
|
||||||
2005-07-28 Christopher Faylor <cgf@timesys.com>
|
2005-07-28 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* cygmalloc.h (MSPACES): Define. This dropped through the cracks after
|
* cygmalloc.h (MSPACES): Define. This dropped through the cracks after
|
||||||
|
@ -370,8 +370,6 @@ fork_parent (HANDLE&, dll *&first_dll, bool& load_dlls, void *stack_here, child_
|
|||||||
|
|
||||||
int child_pid = cygwin_pid (pi.dwProcessId);
|
int child_pid = cygwin_pid (pi.dwProcessId);
|
||||||
pinfo child (child_pid, 1);
|
pinfo child (child_pid, 1);
|
||||||
child->start_time = time (NULL); /* Register child's starting time. */
|
|
||||||
child->nice = myself->nice;
|
|
||||||
|
|
||||||
if (!child)
|
if (!child)
|
||||||
{
|
{
|
||||||
@ -381,6 +379,9 @@ fork_parent (HANDLE&, dll *&first_dll, bool& load_dlls, void *stack_here, child_
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
child->start_time = time (NULL); /* Register child's starting time. */
|
||||||
|
child->nice = myself->nice;
|
||||||
|
|
||||||
/* Initialize things that are done later in dll_crt0_1 that aren't done
|
/* Initialize things that are done later in dll_crt0_1 that aren't done
|
||||||
for the forkee. */
|
for the forkee. */
|
||||||
strcpy (child->progname, myself->progname);
|
strcpy (child->progname, myself->progname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user