From cc1be67a50898820efdfe058e42d90103f6624e0 Mon Sep 17 00:00:00 2001 From: Boris Pruessmann Date: Wed, 22 Feb 2017 21:00:43 +0100 Subject: [PATCH] Vendor package github.com/bugsnag/panicwrap to v1.1.0 to support ARM64 Done with command `godep update -v github.com/bugsnag/panicwrap`. Signed-off-by: Boris Pruessmann --- Godeps/Godeps.json | 6 +++--- vendor/github.com/bugsnag/panicwrap/CHANGELOG.md | 11 +++++++++++ vendor/github.com/bugsnag/panicwrap/dup2.go | 11 +++++++++++ vendor/github.com/bugsnag/panicwrap/dup3.go | 11 +++++++++++ vendor/github.com/bugsnag/panicwrap/monitor.go | 3 +-- 5 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 vendor/github.com/bugsnag/panicwrap/CHANGELOG.md create mode 100644 vendor/github.com/bugsnag/panicwrap/dup2.go create mode 100644 vendor/github.com/bugsnag/panicwrap/dup3.go diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index f703df26..4cf02d55 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -1,7 +1,7 @@ { "ImportPath": "github.com/docker/machine", "GoVersion": "go1.7", - "GodepVersion": "v74", + "GodepVersion": "v79", "Packages": [ "github.com/docker/machine", "github.com/docker/machine/cmd", @@ -262,8 +262,8 @@ }, { "ImportPath": "github.com/bugsnag/panicwrap", - "Comment": "1.0.0", - "Rev": "e5f9854865b9778a45169fc249e99e338d4d6f27" + "Comment": "1.1.0", + "Rev": "aceac81c6e2f55f23844821679a0553b545e91df" }, { "ImportPath": "github.com/cenkalti/backoff", diff --git a/vendor/github.com/bugsnag/panicwrap/CHANGELOG.md b/vendor/github.com/bugsnag/panicwrap/CHANGELOG.md new file mode 100644 index 00000000..8ad30baf --- /dev/null +++ b/vendor/github.com/bugsnag/panicwrap/CHANGELOG.md @@ -0,0 +1,11 @@ +## 1.1.0 (2016-01-18) + +* Add ARM64 support + [liusdu](https://github.com/liusdu) + [#1](https://github.com/bugsnag/panicwrap/pull/1) + +## 1.0.0 (2014-11-10) + +### Enhancements + +* Add ability to monitor a process diff --git a/vendor/github.com/bugsnag/panicwrap/dup2.go b/vendor/github.com/bugsnag/panicwrap/dup2.go new file mode 100644 index 00000000..de523c83 --- /dev/null +++ b/vendor/github.com/bugsnag/panicwrap/dup2.go @@ -0,0 +1,11 @@ +// +build darwin dragonfly freebsd linux,!arm64 netbsd openbsd + +package panicwrap + +import ( + "syscall" +) + +func dup2(oldfd, newfd int) error { + return syscall.Dup2(oldfd, newfd) +} diff --git a/vendor/github.com/bugsnag/panicwrap/dup3.go b/vendor/github.com/bugsnag/panicwrap/dup3.go new file mode 100644 index 00000000..9721b36c --- /dev/null +++ b/vendor/github.com/bugsnag/panicwrap/dup3.go @@ -0,0 +1,11 @@ +// +build linux,arm64 + +package panicwrap + +import ( + "syscall" +) + +func dup2(oldfd, newfd int) error { + return syscall.Dup3(oldfd, newfd, 0) +} diff --git a/vendor/github.com/bugsnag/panicwrap/monitor.go b/vendor/github.com/bugsnag/panicwrap/monitor.go index 1c64a546..72b418a2 100644 --- a/vendor/github.com/bugsnag/panicwrap/monitor.go +++ b/vendor/github.com/bugsnag/panicwrap/monitor.go @@ -6,7 +6,6 @@ import ( "github.com/bugsnag/osext" "os" "os/exec" - "syscall" ) func monitor(c *WrapConfig) (int, error) { @@ -54,7 +53,7 @@ func monitor(c *WrapConfig) (int, error) { return -1, err } - err = syscall.Dup2(int(write.Fd()), int(os.Stderr.Fd())) + err = dup2(int(write.Fd()), int(os.Stderr.Fd())) if err != nil { return -1, err }