Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/execing-processes/execing-processes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ package main
import (
"os"
"os/exec"
"syscall"

"golang.org/x/sys/unix"
)

func main() {
Expand All @@ -38,12 +39,12 @@ func main() {
// environment.
env := os.Environ()

// Here's the actual `syscall.Exec` call. If this call is
// Here's the actual `unix.Exec` call. If this call is
// successful, the execution of our process will end
// here and be replaced by the `/bin/ls -a -l -h`
// process. If there is an error we'll get a return
// value.
execErr := syscall.Exec(binary, args, env)
execErr := unix.Exec(binary, args, env)
if execErr != nil {
panic(execErr)
}
Expand Down
4 changes: 2 additions & 2 deletions examples/execing-processes/execing-processes.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
568ae983493addff02d2ce8df57f41daf537f077
s9qg7olf1dM
08296102ec7720e560f4e1eb7554e73f01553a92
m9u7-JZeKF3
5 changes: 3 additions & 2 deletions examples/signals/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import (
"context"
"fmt"
"os/signal"
"syscall"

"golang.org/x/sys/unix"
)

func main() {
// `signal.NotifyContext` returns a context that's canceled
// when one of the listed signals arrives.
ctx, stop := signal.NotifyContext(
context.Background(), syscall.SIGINT, syscall.SIGTERM)
context.Background(), unix.SIGINT, unix.SIGTERM)
defer stop()

// The program will wait here until one of the
Expand Down
4 changes: 2 additions & 2 deletions examples/signals/signals.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
f55b2c52d8888d110d5909023e1dd8bfdf0846a6
F3Wm7JT8wgn
f575622f0e0df24b2ac419e81027f099370996b0
KyU6iGt3BmP
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.19.1
github.com/aws/aws-sdk-go-v2/service/s3 v1.97.3
github.com/russross/blackfriday/v2 v2.1.0
golang.org/x/sys v0.47.0
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
21 changes: 15 additions & 6 deletions public/execing-processes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions public/signals

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading