[haiku-bugs] Re: [Haiku] #17130: The computer hangs, when shutting down system

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 29 Jul 2021 15:16:54 -0000

#17130: The computer hangs, when shutting down system
------------------------+-------------------------
  Reporter:  huh20      |      Owner:  nobody
      Type:  bug        |     Status:  new
  Priority:  normal     |  Milestone:  Unscheduled
 Component:  - General  |    Version:  R1/beta3
Resolution:             |   Keywords:  Shutdown
Blocked By:             |   Blocking:
  Platform:  x86-64     |
------------------------+-------------------------
Comment (by tqh):

 As I understand it you are on x86_64.

 For rebooting we try very old way of rebooting as a last try:
 
https://github.com/haiku/haiku/blob/8f16317a5b6db5c672f331814273e5857555020f/src/system/kernel/arch/x86/arch_cpu.cpp#L1662

 Another interesting thing is that for some reason we kill teams when
 rebooting, which we don't do for shutdown. The code is so old there is no
 commit message why it is done that way. To me it seems it should be done
 in both or neither case. Killing the teams first may also be what makes
 reboot work:
 
https://github.com/haiku/haiku/blob/8f16317a5b6db5c672f331814273e5857555020f/src/system/kernel/shutdown.cpp#L13
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17130#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: