aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/os/exec_posix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec_posix.go')
-rw-r--r--src/os/exec_posix.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/os/exec_posix.go b/src/os/exec_posix.go
deleted file mode 100644
index 720368572..000000000
--- a/src/os/exec_posix.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || wasip1 || wasip2 || windows
-
-package os
-
-import (
- "runtime"
- "syscall"
-)
-
-// The only signal values guaranteed to be present in the os package on all
-// systems are os.Interrupt (send the process an interrupt) and os.Kill (force
-// the process to exit). On Windows, sending os.Interrupt to a process with
-// os.Process.Signal is not implemented; it will return an error instead of
-// sending a signal.
-var (
- Interrupt Signal = syscall.SIGINT
- Kill Signal = syscall.SIGKILL
-)
-
-// Keep compatible with golang and always succeed and return new proc with pid on Linux.
-func findProcess(pid int) (*Process, error) {
- return &Process{Pid: pid}, nil
-}
-
-func (p *Process) release() error {
- // NOOP for unix.
- p.Pid = -1
- // no need for a finalizer anymore
- runtime.SetFinalizer(p, nil)
- return nil
-}