MCPcopy Create free account
hub / github.com/Shopify/goose / WithSysProcAttr

Method WithSysProcAttr

shell/builder.go:42–49  ·  view source on GitHub ↗
(attr *syscall.SysProcAttr)

Source from the content-addressed store, hash-verified

40}
41
42func (w *wrapper) WithSysProcAttr(attr *syscall.SysProcAttr) Builder {
43 if w.sysProcAttr == nil {
44 w.sysProcAttr = attr
45 } else if err := mergo.Merge(w.sysProcAttr, *attr); err != nil {
46 panic(errors.Wrap(err, "unable to merge SysProcAttr"))
47 }
48 return w
49}
50
51func (w *wrapper) WithContextCancellation(gracefulTimeout time.Duration) Builder {
52 w.ctxCancellation = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected