A comment
This commit is contained in:
parent
d10d324e79
commit
194f8bf739
1 changed files with 3 additions and 0 deletions
3
proc.c
3
proc.c
|
@ -327,6 +327,9 @@ forkret(void)
|
||||||
release(&ptable.lock);
|
release(&ptable.lock);
|
||||||
|
|
||||||
if (first) {
|
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;
|
first = 0;
|
||||||
initlog();
|
initlog();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue