From e954dc800b6518e6cb271a5c9c963408ccccaed0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 30 Mar 2008 19:11:18 +0000 Subject: [PATCH] Send SIGTERM on shutdown, not SIGHUP. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24688 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/ShutdownProcess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/registrar/ShutdownProcess.cpp b/src/servers/registrar/ShutdownProcess.cpp index d9cce042d8..ec1abf3434 100644 --- a/src/servers/registrar/ShutdownProcess.cpp +++ b/src/servers/registrar/ShutdownProcess.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2005-2007, Ingo Weinhold, bonefish@users.sf.net. + * Copyright 2005-2008, Ingo Weinhold, bonefish@users.sf.net. * Distributed under the terms of the MIT License. */ @@ -53,7 +53,7 @@ static const bigtime_t kAppQuitTimeout = 3000000; // 3 s // delivered (more precisely: has been handed over to the MessageDeliverer). static const bigtime_t kBackgroundAppQuitTimeout = 3000000; // 3 s -// The time span non-app processes have after the HUP signal has been send +// The time span non-app processes have after the TERM signal has been send // to them before they get a KILL signal. static const bigtime_t kNonAppQuitTimeout = 500000; // 0.5 s @@ -1612,16 +1612,16 @@ ShutdownProcess::_QuitNonApps() _SetShutdownWindowText("Asking other processes to quit."); - // iterate through the remaining teams and send them the HUP signal + // iterate through the remaining teams and send them the TERM signal int32 cookie = 0; team_info teamInfo; while (get_next_team_info(&cookie, &teamInfo) == B_OK) { if (fVitalSystemApps.find(teamInfo.team) == fVitalSystemApps.end()) { - PRINT((" sending team %ld HUP signal\n", teamInfo.team)); + PRINT((" sending team %ld TERM signal\n", teamInfo.team)); #ifdef __HAIKU__ // Note: team ID == team main thread ID under Haiku - send_signal(teamInfo.team, SIGHUP); + send_signal(teamInfo.team, SIGTERM); #else // We don't want to do this when testing under R5, since it // would kill all teams besides our app server and registrar.