Skip to content

Commit

Permalink
Don't sleep before panicking
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbak25 committed Jun 2, 2023
1 parent 063dbfd commit 6a955ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ void panic(int err, ...)
* because a kernel panic obscures the message. But we need to cause
* a kernel panic (by PID 1 exiting), because if the user tells the
* kernel to reboot on panic, we want to make sure this happens. */
warn("Will cause kernel panic in 10s...", NULL);
sleep(10);
warn("Causing kernel panic", NULL);
//sleep(10);
_exit(1);
}

Expand Down

0 comments on commit 6a955ff

Please sign in to comment.