Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    ad6a0466
    Add "--noshutdown" option to loader · ad6a0466
    Nadav Har'El authored
    Added a "--noshutdown" option to loader which prevents a shutdown
    (and a poweroff), after main() returns.
    
    Note that this doesn't just replace poweroff() by halt() - with this
    option, the system *isn't* halted after main() returns, but rather
    continues as usual - possibly still running other threads that main()
    didn't wait for, running various system threads and services, and so on.
    ad6a0466
    History
    Add "--noshutdown" option to loader
    Nadav Har'El authored
    Added a "--noshutdown" option to loader which prevents a shutdown
    (and a poweroff), after main() returns.
    
    Note that this doesn't just replace poweroff() by halt() - with this
    option, the system *isn't* halted after main() returns, but rather
    continues as usual - possibly still running other threads that main()
    didn't wait for, running various system threads and services, and so on.