Ticket #3678: shutdown.c.diff
File shutdown.c.diff, 791 bytes (added by , 15 years ago) |
---|
-
src/system/kernel/shutdown.c
1 1 /* 2 * Copyright 2009, Olivier Coursière. All rights reserved. 2 3 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 4 * Distributed under the terms of the MIT License. 4 5 */ … … 11 12 status_t 12 13 system_shutdown(bool reboot) 13 14 { 14 // ToDo: shutdown all system services! 15 15 int32 cookie = 0; 16 team_info info; 17 18 // Now shutdown all system services! 19 while (get_next_team_info(&cookie, &info) == B_OK) { 20 if (info.team == B_SYSTEM_TEAM) 21 continue; 22 kill_team(info.team); 23 } 24 16 25 sync(); 17 26 18 27 return arch_cpu_shutdown(reboot);