diff options
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -322,8 +322,14 @@ yield(void) void forkret(void) { + static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); + + if (first) { + first = 0; + initlog(); + } // Return to "caller", actually trapret (see allocproc). } |