]> Devi Nivas Git - cs3210-lab0.git/commitdiff
A comment
authorFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Tue, 23 Aug 2011 00:07:18 +0000 (20:07 -0400)
committerFrans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>
Tue, 23 Aug 2011 00:07:18 +0000 (20:07 -0400)
proc.c

diff --git a/proc.c b/proc.c
index 23a53bca827385852b46e4781f54525db3751d45..bdc119f3f3f2e1f7c11e5239e009a98c58c6dbc2 100644 (file)
--- 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();
   }