1. 06 Jun, 2019 4 commits
  2. 05 Jun, 2019 10 commits
  3. 04 Jun, 2019 4 commits
  4. 03 Jun, 2019 6 commits
  5. 02 Jun, 2019 2 commits
  6. 31 May, 2019 9 commits
  7. 30 May, 2019 5 commits
    • Ian Lance Taylor's avatar
      misc/cgo/errors: remove debugging println · 9e229920
      Ian Lance Taylor authored
      Change-Id: I0c7da31e94307f939e1a2f023e00d5b24bac0ea6
      Reviewed-on: https://go-review.googlesource.com/c/go/+/179604
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      9e229920
    • Ian Lance Taylor's avatar
      os: deflake TestNewFileNonBlock · 3cee5505
      Ian Lance Taylor authored
      Fixes #32325
      
      Change-Id: Ic06938c36a25ef1a6623e35e128b73729d02d955
      Reviewed-on: https://go-review.googlesource.com/c/go/+/179698
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      3cee5505
    • Brad Fitzpatrick's avatar
      net/http: prevent Transport from spamming stderr on server 408 reply · ba66d89d
      Brad Fitzpatrick authored
      HTTP 408 responses now exist and are seen in the wild (e.g. from
      Google's GFE), so make Go's HTTP client not spam about them when seen.
      They're normal (now).
      
      Fixes #32310
      
      Change-Id: I558eb4654960c74cf20db1902ccaae13d03310f6
      Reviewed-on: https://go-review.googlesource.com/c/go/+/179457
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarDmitri Shuralyov <dmitshur@golang.org>
      ba66d89d
    • Greg Thelen's avatar
      syscall: use Ctty before fd shuffle · 103b5b66
      Greg Thelen authored
      On unix if exec.Command() is given both ExtraFiles and Ctty, and the
      Ctty file descriptor overlaps the range of FDs intended for the child,
      then cmd.Start() the ioctl(fd,TIOCSCTTY) call fails with an
      "inappropriate ioctl for device" error.
      
      When child file descriptors overlap the new child's ctty the ctty will
      be closed in the fd shuffle before the TIOCSCTTY.  Thus TIOCSCTTY is
      used on one of the ExtraFiles rather than the intended Ctty file.  Thus
      the error.
      
      exec.Command() callers can workaround this by ensuring the Ctty fd is
      larger than any ExtraFiles destined for the child.
      
      Fix this by doing the ctty ioctl before the fd shuffle.
      
      Test for this issue by modifying TestTerminalSignal to use more
      ExtraFiles.  The test fails on linux and freebsd without this change's
      syscall/*.go changes.  Other platforms (e.g. darwin, aix, solaris) have
      the same fd shuffle logic, so the same fix is applied to them.  However,
      I was only able to test on linux (32 and 64 bit) and freebsd (64 bit).
      
      Manual runs of the test in https://golang.org/issue/29458 start passing
      with this patch:
        Before:
          % /tmp/src/go/bin/go run t
          successfully ran child process with ParentExtraFileFdNum=5, ChildExtraFileFd=6, ParentPtyFd=7
      
          panic: failed to run child process with ParentExtraFileFdNum=10, ChildExtraFileFd=11, ParentPtyFd=11: fork/exec /bin/true: inappropriate ioctl for device
      
        After:
          % /tmp/src/go/bin/go run t
          successfully ran child process with ParentExtraFileFdNum=5, ChildExtraFileFd=6, ParentPtyFd=7
      
          successfully ran child process with ParentExtraFileFdNum=10, ChildExtraFileFd=11, ParentPtyFd=11
      
      Fixes #29458
      Change-Id: I99513de7b6073c7eb855f1eeb4d1f9dc0454ef8b
      Reviewed-on: https://go-review.googlesource.com/c/go/+/178919
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      103b5b66
    • Jay Conrod's avatar
      cmd/go: clarify documentation for 'go get -u' · a53b4655
      Jay Conrod authored
      Also: add a comment in internal/get.newUpgrader as a follow-up to
      CL 177677.
      
      Updates #26902
      
      Change-Id: Ibce2807ecb44fa21697ca04a51c44ddca0f661d8
      Reviewed-on: https://go-review.googlesource.com/c/go/+/176902Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
      Run-TryBot: Bryan C. Mills <bcmills@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a53b4655