Ticket #3678: shutdown.c.diff

File shutdown.c.diff, 791 bytes (added by oco, 15 years ago)

Patch shutdown.c

  • src/system/kernel/shutdown.c

     
    11/*
     2 * Copyright 2009, Olivier Coursière. All rights reserved.
    23 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
    34 * Distributed under the terms of the MIT License.
    45 */
     
    1112status_t
    1213system_shutdown(bool reboot)
    1314{
    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   
    1625    sync();
    1726
    1827    return arch_cpu_shutdown(reboot);