Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(157)

Issue 81290043: code review 81290043: exec: Add ExitError.ExitStatus() method.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by david.calavera
Modified:
11 years, 1 month ago
Reviewers:
gobot, golang-codereviews, dave, r, giacomo.tartari, bradfitz
CC:
golang-codereviews
Visibility:
Public.

Description

exec: Add ExitError.ExitStatus() method. This adds a method to the ExitError struct to help retrieve the underlying status code from the process. It uses the same name that ssh.Waitmsg provides in the new ssh package in go.crypto: http://godoc.org/code.google.com/p/go.crypto/ssh#Waitmsg.ExitStatus

Patch Set 1 #

Patch Set 2 : diff -r 9cd3a4758b94 https://code.google.com/p/go #

Patch Set 3 : diff -r 9cd3a4758b94 https://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M src/pkg/os/exec/exec.go View 1 1 chunk +9 lines, -0 lines 2 comments Download
M src/pkg/os/exec/exec_test.go View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 10
david.calavera
Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2014-03-27 07:23:25 UTC) #1
r
This is a new feature so it must wait until after the feature freeze. Please ...
11 years, 3 months ago (2014-03-27 12:00:00 UTC) #2
gobot
R=close (assigned by dave@cheney.net)
11 years, 3 months ago (2014-04-02 08:21:47 UTC) #3
david.calavera
Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 1 month ago (2014-06-11 00:14:43 UTC) #4
dave_cheney.net
https://codereview.appspot.com/81290043/diff/40001/src/pkg/os/exec/exec.go File src/pkg/os/exec/exec.go (right): https://codereview.appspot.com/81290043/diff/40001/src/pkg/os/exec/exec.go#newcode300 src/pkg/os/exec/exec.go:300: func (e *ExitError) ExitStatus() int { I'm not convinced ...
11 years, 1 month ago (2014-06-11 09:39:22 UTC) #5
giacomo.tartari_gmail.com
On Wednesday, 11 June 2014 11:39:23 UTC+2, da...@cheney.net wrote: > https://codereview.appspot.com/81290043/diff/40001/src/pkg/os/exec/exec.go > > File src/pkg/os/exec/exec.go ...
11 years, 1 month ago (2014-06-11 14:21:43 UTC) #6
david.calavera
On 2014/06/11 14:21:43, giacomo.tartari_gmail.com wrote: > On Wednesday, 11 June 2014 11:39:23 UTC+2, mailto:da...@cheney.net wrote: ...
11 years, 1 month ago (2014-06-11 16:32:30 UTC) #7
bradfitz
https://codereview.appspot.com/81290043/diff/40001/src/pkg/os/exec/exec.go File src/pkg/os/exec/exec.go (right): https://codereview.appspot.com/81290043/diff/40001/src/pkg/os/exec/exec.go#newcode305 src/pkg/os/exec/exec.go:305: s := e.Sys().(syscall.WaitStatus) FYI, plan9 has no syscall.WaitStatus. This ...
11 years, 1 month ago (2014-06-11 18:26:11 UTC) #8
r
NOT LGTM I don't see how this can be done portably. It's not been done ...
11 years, 1 month ago (2014-06-12 19:37:58 UTC) #9
gobot
11 years, 1 month ago (2014-06-16 20:08:47 UTC) #10
R=close (assigned by r@golang.org)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b