Also consider the kernel team a "vital system app" that deserves not to be killed. Shutdown now works under qemu, although even shutdown reboots...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13707 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1296,13 +1296,19 @@ TRoster::GetShutdownApps(AppInfoList &userApps, AppInfoList &systemApps,
|
|||||||
|
|
||||||
// get the vital system apps:
|
// get the vital system apps:
|
||||||
// * ourself
|
// * ourself
|
||||||
|
// * kernel team
|
||||||
// * app server
|
// * app server
|
||||||
// * input server
|
// * input server
|
||||||
// * debug server
|
// * debug server
|
||||||
if (error == B_OK) {
|
|
||||||
// ourself
|
// ourself
|
||||||
vitalSystemApps.insert(be_app->Team());
|
vitalSystemApps.insert(be_app->Team());
|
||||||
|
|
||||||
|
// kernel team
|
||||||
|
team_info teamInfo;
|
||||||
|
if (get_team_info(B_SYSTEM_TEAM, &teamInfo) == B_OK)
|
||||||
|
vitalSystemApps.insert(teamInfo.team);
|
||||||
|
|
||||||
// app server
|
// app server
|
||||||
port_id appServerPort = find_port(SERVER_PORT_NAME);
|
port_id appServerPort = find_port(SERVER_PORT_NAME);
|
||||||
port_info portInfo;
|
port_info portInfo;
|
||||||
@@ -1321,7 +1327,6 @@ TRoster::GetShutdownApps(AppInfoList &userApps, AppInfoList &systemApps,
|
|||||||
info = fRegisteredApps.InfoFor("application/x-vnd.haiku-debug-server");
|
info = fRegisteredApps.InfoFor("application/x-vnd.haiku-debug-server");
|
||||||
if (info)
|
if (info)
|
||||||
vitalSystemApps.insert(info->team);
|
vitalSystemApps.insert(info->team);
|
||||||
}
|
|
||||||
|
|
||||||
// populate the other groups
|
// populate the other groups
|
||||||
for (AppInfoList::Iterator it(fRegisteredApps.It());
|
for (AppInfoList::Iterator it(fRegisteredApps.It());
|
||||||
|
|||||||
Reference in New Issue
Block a user