Misc questions... #2620
Replies: 1 comment 5 replies
-
|
Hello @floriangit, Currently, CTRL-ALT-DEL does not call other system functions (like sync) before forcing a hard reset. This is a bit debatable, but when the system is hung and the kernel in a bad state, it may not be a good idea to call complex system functions like sync, as the resulting I/O could in fact corrupt the system and/or disk image further. On a non-protected, non-MMU system, when the system is hung, it thus usually better to just reset rather than trying to rectify the problem.
These are used in the associated Makefile for the non-IBM PC builds.
Foreground programs can be stopped via CTRL-Z, and restarted via The ash job control is still somewhat useful when using the combination of |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
(1) Here https://github.com/ghaerr/elks/blob/master/elks/arch/i86/drivers/char/kbd-scancode.c#L309 I can see there is no connection of the character drivers with the filesystem (which makes sense). Does this imply (https://github.com/ghaerr/elks/blob/master/elks/arch/i86/kernel/reset-ibm.c#L9), there is neither a sync nor unmounting applied before doing the reboot? The code comment also alludes to this.
I have the situations that things sometimes hang, yet CTRL-ALT-DEL works and reboots. It would feel better to add at least some basic sync-to-disk there? (not that I have very important data, though, lol).
(2) do we need reset-stubs.c?
(3)
ashjob control: I can send a process into the background suffixing it with&, I can also usefgto bring it into the foreground. Howeverbgand CTRL-Z functionality is missing, which feels a bit odd, but maybe is accounted to the limited implementation at that time?Beta Was this translation helpful? Give feedback.
All reactions