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

Issue 553139: gclient: Keyboard interrupt should not cause request to send stack (Closed)

Created:
10 years, 11 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

gclient: Keyboard interrupt should not cause request to send stack Patch-contributed-by: Alexey Marinichev <amarinichev@chromium.org>; Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37434

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M breakpad.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Mandeep Singh Baines
10 years, 11 months ago (2010-01-28 19:40:11 UTC) #1
Nasser Grainawi
Should this catch any Keyboard interrupt while running a gclient command?
10 years, 11 months ago (2010-01-28 19:50:33 UTC) #2
M-A Ruel
On 2010/01/28 19:50:33, Nasser Grainawi wrote: > Should this catch any Keyboard interrupt while running ...
10 years, 11 months ago (2010-01-28 19:52:24 UTC) #3
M-A Ruel
lgtm
10 years, 11 months ago (2010-01-28 19:52:35 UTC) #4
amarinichev
This is good enough to catch Ctrl-C. For anything else we'll notify Marc-Antoine. On Thu, ...
10 years, 11 months ago (2010-01-28 19:55:40 UTC) #5
Alexey Marinichev
lgtm
10 years, 11 months ago (2010-01-28 19:56:52 UTC) #6
Nasser Grainawi
So, this only works nicely for googlers, what about all of us non-googlers that don't ...
10 years, 11 months ago (2010-01-28 20:01:11 UTC) #7
M-A Ruel
On 2010/01/28 20:01:11, Nasser Grainawi wrote: > So, this only works nicely for googlers, what ...
10 years, 11 months ago (2010-01-28 20:03:52 UTC) #8
Nasser Grainawi
maruel@chromium.org wrote: > On 2010/01/28 20:01:11, Nasser Grainawi wrote: >> So, this only works nicely ...
10 years, 11 months ago (2010-01-28 20:18:28 UTC) #9
msb
10 years, 11 months ago (2010-01-28 20:31:02 UTC) #10
On Thu, Jan 28, 2010 at 12:18 PM, Nasser Grainawi <nasser@codeaurora.org>wrote:

> maruel@chromium.org wrote:
>
>> On 2010/01/28 20:01:11, Nasser Grainawi wrote:
>>
>>> So, this only works nicely for googlers, what about all of us
>>> non-googlers
>>>
>> that
>>
>>> don't want to see an ugly stack trace each time we hit Ctrl-C?
>>>
>>
>> breakpad is only enabled for googlers because I didn't want people to
>> accept an
>> EULA to use depot_tools and we respect your privacy.
>>
>> breakpad really just being triggered *after* the fact, the stack trace is
>> happening on python by design and the code is running after the stack
>> trace has
>> been printed. There could be a ctrl_c shallower but that's outside of the
>> scope
>> of breakpad.
>>
>
> Ah, didn't realize it was still after it had been printed.
>
> Would it be reasonable to do something like this?
>
>
http://lizards.opensuse.org/2009/05/04/supressing-keyboardinterrupt-traceback...
>
>
>
I kinda like getting the stack trace. I use a lot of tools written in Python
and I know that when I hit ctrl-C I'm going
to get a stack trace. Its useful sometimes when things are hung. Sometimes I
just hit ctrl-C to cancel an operation
I no longer want to happen (expensive/slow operation).

We could make this configurable but that just adds extra complexity and
means we won't get a stack trace when
things are hung. But too many ctrl-C are for the non-hung case that the
prompt is bothersome.


>
>> http://codereview.chromium.org/553139
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698