diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-05-02 17:39:12 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-02 17:40:01 -0700 |
commit | a61def1b368a9042e346787008e12770e4e67b35 (patch) | |
tree | 471e9c844c6dc5d6cd8e6949a47d78c52132d3b0 /pkg/sentry/control/proc.go | |
parent | 6c061ad913fce6fbfe9a98c0fc1f5b67fad1b9b0 (diff) |
Remove detach for exec options
Detachable exec commands are handled in the client entirely and the detach option is not used anymore.
PiperOrigin-RevId: 195181272
Change-Id: I6e82a2876d2c173709c099be59670f71702e5bf0
Diffstat (limited to 'pkg/sentry/control/proc.go')
-rw-r--r-- | pkg/sentry/control/proc.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/sentry/control/proc.go b/pkg/sentry/control/proc.go index 7d06a1d04..d77b30c90 100644 --- a/pkg/sentry/control/proc.go +++ b/pkg/sentry/control/proc.go @@ -72,9 +72,6 @@ type ExecArgs struct { // Capabilities is the list of capabilities to give to the process. Capabilities *auth.TaskCapabilities - // Detach indicates whether Exec should detach once the process starts. - Detach bool - // FilePayload determines the files to give to the new process. urpc.FilePayload } @@ -135,12 +132,6 @@ func (proc *Proc) Exec(args *ExecArgs, waitStatus *uint32) error { return err } - // If we're supposed to detach, don't wait for the process to exit. - if args.Detach { - *waitStatus = 0 - return nil - } - // Wait for completion. newTG.WaitExited() *waitStatus = newTG.ExitStatus().Status() |