From: Frans Kaashoek Date: Tue, 23 Aug 2011 00:07:18 +0000 (-0400) Subject: A comment X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=194f8bf739d441283c56985017c4a6f1b35a99cd;p=cs3210-lab1.git A comment --- diff --git a/proc.c b/proc.c index 23a53bc..bdc119f 100644 --- a/proc.c +++ b/proc.c @@ -327,6 +327,9 @@ forkret(void) release(&ptable.lock); if (first) { + // Some initialization functions must be run in the context + // of a regular process (e.g., they call sleep), and thus cannot + // be run from main(). first = 0; initlog(); }