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

Issue 12314106: [Mac] Do not forward graceful shutdown from child signal handlers. (Closed)

Created:
7 years, 10 months ago by Scott Hess - ex-Googler
Modified:
7 years, 10 months ago
Reviewers:
Lei Zhang, viettrungluu
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

[Mac] Do not forward graceful shutdown from child signal handlers. OSX implements fork() as a userland wrapper around a system call. If a graceful-shutdown signal is received before the graceful-shutdown pipe has been replaced, the parent process will shutdown. Change to force a crash in the child in this case. BUG=175341 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184805

Patch Set 1 #

Total comments: 4

Patch Set 2 : reorder initialization #

Patch Set 3 : oops, ref the bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M chrome/browser/chrome_browser_main_posix.cc View 1 2 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Scott Hess - ex-Googler
I had an alternate implementation which sent the pid in the message, but could think ...
7 years, 10 months ago (2013-02-25 20:33:31 UTC) #1
Scott Hess - ex-Googler
BTW, I tested by reproducing and seeing a backtrace in the appropriate place in the ...
7 years, 10 months ago (2013-02-25 20:55:01 UTC) #2
viettrungluu
LGTM w/nits, but you break it, you buy it. You may also want to find ...
7 years, 10 months ago (2013-02-25 23:15:06 UTC) #3
Scott Hess - ex-Googler
Conveniently, an OWNERS line corresponds to a Linux expert. getpid() is async signal safe, in ...
7 years, 10 months ago (2013-02-25 23:20:45 UTC) #4
Scott Hess - ex-Googler
Err, Lei, should have made more clear that the OWNERS callout was for you.
7 years, 10 months ago (2013-02-26 18:22:49 UTC) #5
Lei Zhang
lgtm
7 years, 10 months ago (2013-02-26 21:41:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/12314106/7001
7 years, 10 months ago (2013-02-26 21:45:23 UTC) #7
Scott Hess - ex-Googler
Committed patchset #3 manually as r184805 (presubmit successful).
7 years, 10 months ago (2013-02-27 00:53:59 UTC) #8
Scott Hess - ex-Googler
7 years, 10 months ago (2013-02-27 00:57:40 UTC) #9
Message was sent while issue was closed.
On 2013/02/27 00:53:59, shess wrote:
> Committed patchset #3 manually as r184805 (presubmit successful).

Apologies if those redness were actually real.  Looking at the logs, I find it
impossible to tell.

Powered by Google App Engine
This is Rietveld 408576698