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

Issue 2731283008: chromeos/mash: Reset signal handler mask on chrome --mash startup (Closed)

Created:
3 years, 9 months ago by James Cook
Modified:
3 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, hashimoto+watch_chromium.org, derat+watch_chromium.org, vmpstr+watch_chromium.org, oshima+watch_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos/mash: Reset signal handler mask on chrome --mash startup This fixes an issue where the system tray "sign out" item does not cleanly sign out of the session. chrome inherits its signal handler masks from the parent process. These masks are not guaranteed to be in any particular state, so they need to be cleared on startup. Otherwise the SIGTERM signal is blocked, so the signal handler doesn't run, so session_manager cannot cleanly shut down chrome. For non-mash chrome this is done as part of content main initialization, but mash chrome doesn't run that code. BUG=699143, 699777 TEST=System tray > Sign out takes you back to login screen promptly. Also, "stop ui" on device, look at /var/log/messages, see signal 15 being sent and chrome immediately exiting (and no signal 6 sent to kill it). Review-Url: https://codereview.chromium.org/2731283008 Cr-Commit-Position: refs/heads/master@{#455603} Committed: https://chromium.googlesource.com/chromium/src/+/043b638699e0d9854aa53dfc0eeac1f8b7be16b4

Patch Set 1 : more logs #

Patch Set 2 : cleanup #

Patch Set 3 : final patch #

Patch Set 4 : add comment with bug number #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M chrome/app/mash/mash_runner.cc View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 23 (17 generated)
James Cook
sky, please take a look. I ended up talking with nick@ about where this code ...
3 years, 9 months ago (2017-03-08 23:02:39 UTC) #9
Daniel Erat
it might be worthwhile filing a bug about the unexpected mask, just so there's some ...
3 years, 9 months ago (2017-03-08 23:04:46 UTC) #10
sky
Rubber stamp LGTM
3 years, 9 months ago (2017-03-08 23:16:41 UTC) #12
James Cook
On 2017/03/08 23:16:41, sky wrote: > Rubber stamp LGTM Filed crbug.com/699777 about the session_manager issue ...
3 years, 9 months ago (2017-03-08 23:30:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2731283008/120001
3 years, 9 months ago (2017-03-08 23:31:37 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 00:12:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/043b638699e0d9854aa53dfc0eea...

Powered by Google App Engine
This is Rietveld 408576698