syscall_proc: note a case we need to dig into
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:57:38 +0000 (19:57 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 19 Jan 2019 19:57:38 +0000 (19:57 +0000)
Kernel/syscall_proc.c

index 3a4646a..e1944d6 100644 (file)
@@ -424,6 +424,8 @@ arg_t _fork(void)
                pagemap_free(new_process);
                new_process->p_status = P_EMPTY;
                udata.u_error = ENOMEM;
+               /* FIXME: we don't know for sure whether the error occurred
+                  before or after makeproc: see bug 686 */
                nproc--;
                nready--;
        }