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

Issue 1872045: code review 1872045: syscall(windows): defending against GetLastError() retu... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by brainman
Modified:
13 years, 9 months ago
Reviewers:
CC:
rsc, Joe Poirier, peterGo, golang-dev
Visibility:
Public.

Description

syscall(windows): defending against GetLastError() returns 0 after failed winapi call

Patch Set 1 #

Patch Set 2 : code review 1872045: syscall(windows): defending against GetLastError() retu... #

Patch Set 3 : code review 1872045: syscall(windows): defending against GetLastError() retu... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -43 lines) Patch
M src/pkg/runtime/windows/thread.c View 3 chunks +3 lines, -0 lines 0 comments Download
M src/pkg/syscall/mksyscall_windows.sh View 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 42 chunks +210 lines, -42 lines 0 comments Download

Messages

Total messages: 16
brainman
Hello rsc, Joe Poirier, PeterGo (cc: golang-dev@googlegroups.com), I'd like you to review this change.
13 years, 9 months ago (2010-07-23 02:36:06 UTC) #1
rsc
looks pretty good to me. should Syscall call SetLastError(0) before the call, so that we ...
13 years, 9 months ago (2010-07-23 05:17:33 UTC) #2
brainman
> should Syscall call SetLastError(0) > before the call, so that we don't return > ...
13 years, 9 months ago (2010-07-23 05:30:51 UTC) #3
Joe Poirier
On Fri, Jul 23, 2010 at 12:17 AM, Russ Cox <rsc@golang.org> wrote: > looks pretty ...
13 years, 9 months ago (2010-07-23 06:27:06 UTC) #4
brainman
> Getting no error code would be just as annoying as getting a > stale ...
13 years, 9 months ago (2010-07-23 06:42:45 UTC) #5
rsc
> I didn't even think of that. If windows reports wrong error, I'm quite > ...
13 years, 9 months ago (2010-07-23 06:47:23 UTC) #6
brainman
On 2010/07/23 06:47:23, rsc wrote: > Do you know how expensive it is? I'm pretty ...
13 years, 9 months ago (2010-07-23 06:53:16 UTC) #7
rsc
> I'm pretty sure, it is very quick. I looked at GetLastError() and that > ...
13 years, 9 months ago (2010-07-23 06:57:26 UTC) #8
brainman
Hello rsc, Joe Poirier, PeterGo (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 9 months ago (2010-07-23 07:31:56 UTC) #9
Joe Poirier
LGTM
13 years, 9 months ago (2010-07-23 07:41:56 UTC) #10
peterGo
Russ, Here's a summary of the pertinent points from the Microsoft Windows documentation. There are ...
13 years, 9 months ago (2010-07-23 09:42:54 UTC) #11
brainman
On 2010/07/23 09:42:54, PeterGo wrote: > Here's a summary of the pertinent points from the ...
13 years, 9 months ago (2010-07-23 12:17:55 UTC) #12
peterGo
LGTM
13 years, 9 months ago (2010-07-23 21:34:53 UTC) #13
rsc
> Here's a summary of the pertinent points from the Microsoft Windows > documentation. There ...
13 years, 9 months ago (2010-07-25 01:34:27 UTC) #14
rsc
LGTM
13 years, 9 months ago (2010-07-25 01:34:44 UTC) #15
brainman
13 years, 9 months ago (2010-07-26 00:24:56 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=4a01b8d28570 ***

syscall: improve windows errno handling

R=rsc, Joe Poirier, PeterGo
CC=golang-dev
http://codereview.appspot.com/1872045

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

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