invoke_notunix.go raw

   1  // Copyright 2025 The Go Authors. All rights reserved.
   2  // Use of this source code is governed by a BSD-style
   3  // license that can be found in the LICENSE file.
   4  
   5  //go:build !unix
   6  
   7  package gocommand
   8  
   9  import "os"
  10  
  11  // sigStuckProcess is the signal to send to kill a hanging subprocess.
  12  // On Unix we send SIGQUIT, but on non-Unix we only have os.Kill.
  13  var sigStuckProcess = os.Kill
  14