blob: 47af4684baf224f020472de98cfa9549f917c150 [file] [edit]
// Copyright 2018 Google LLC
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//go:build windows
// +build windows
package exec
import (
"context"
)
// NoInterruptContext returns a context.Context instance which launches
// subprocesses in a difference process group so that they are not killed when
// this process is killed.
//
// On Windows, this function just returns withoutCancel(ctx).
func NoInterruptContext(ctx context.Context) context.Context {
return withoutCancel(ctx)
}