]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fork.cc (fork_parent): Fix null deref if pinfo creation fails.
authorChristopher Faylor <me@cgf.cx>
Fri, 29 Jul 2005 14:22:56 +0000 (14:22 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 29 Jul 2005 14:22:56 +0000 (14:22 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/fork.cc

index 03e41da5b527fda643ce341ffd587a19c6f55f6c..10b9a1bd4e661d74a77780c161ba8361b078aa18 100644 (file)
@@ -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>
 
        * cygmalloc.h (MSPACES): Define.  This dropped through the cracks after
index 649baa3e3893b8da14f285eb60e5da293a9104a7..6ed515b64fc6a60b9e9cc6636a72cfa44ba151eb 100644 (file)
@@ -370,8 +370,6 @@ fork_parent (HANDLE&, dll *&first_dll, bool& load_dlls, void *stack_here, child_
 
   int child_pid = cygwin_pid (pi.dwProcessId);
   pinfo child (child_pid, 1);
-  child->start_time = time (NULL); /* Register child's starting time. */
-  child->nice = myself->nice;
 
   if (!child)
     {
@@ -381,6 +379,9 @@ fork_parent (HANDLE&, dll *&first_dll, bool& load_dlls, void *stack_here, child_
       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
      for the forkee.  */
   strcpy (child->progname, myself->progname);
This page took 0.039472 seconds and 5 git commands to generate.