summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-08-22 20:07:18 -0400
committerFrans Kaashoek <[email protected]>2011-08-22 20:07:18 -0400
commit194f8bf739d441283c56985017c4a6f1b35a99cd (patch)
treec6dc5d8dcf2ddc2b4fd8c0477fc7d2a665334836 /proc.c
parentd10d324e79bdcd7d7ab57952e6b140009737e868 (diff)
downloadxv6-labs-194f8bf739d441283c56985017c4a6f1b35a99cd.tar.gz
xv6-labs-194f8bf739d441283c56985017c4a6f1b35a99cd.tar.bz2
xv6-labs-194f8bf739d441283c56985017c4a6f1b35a99cd.zip
A comment
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c3
1 files changed, 3 insertions, 0 deletions
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();
}