Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: session_manager_service.cc

Issue 3336018: Send SIGTERM and SIGABRT signals to a process group (Closed) Base URL: ssh://git@chromiumos-git//login_manager.git
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | session_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: session_manager_service.cc
diff --git a/session_manager_service.cc b/session_manager_service.cc
index 4f074f40eabfaeb9c74eac0e8b07bd7625567994..3a499f42ee9ead3ae03272102d47aa3c3797059f 100644
--- a/session_manager_service.cc
+++ b/session_manager_service.cc
@@ -830,9 +830,9 @@ void SessionManagerService::CleanupChildren(int timeout) {
for (size_t i_child = 0; i_child < child_pids_.size(); ++i_child) {
int child_pid = child_pids_[i_child];
if (child_pid > 0) {
- system_->kill(child_pid, (session_started_ ? SIGTERM: SIGKILL));
+ system_->kill(-child_pid, (session_started_ ? SIGTERM : SIGKILL));
if (!system_->ChildIsGone(child_pid, timeout))
- system_->kill(child_pid, SIGABRT);
+ system_->kill(-child_pid, SIGABRT);
}
}
}
« no previous file with comments | « no previous file | session_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698