We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752af5f commit a6e4badCopy full SHA for a6e4bad
src/os/exec_linux_arm64.go
@@ -6,7 +6,29 @@
6
7
package os
8
9
-import "errors"
+import (
10
+ "errors"
11
+ "runtime"
12
+ "syscall"
13
+)
14
+
15
+var (
16
+ Interrupt Signal = syscall.SIGINT
17
+ Kill Signal = syscall.SIGKILL
18
19
20
+// Keep compatible with golang and always succeed and return new proc with pid on Linux.
21
+func findProcess(pid int) (*Process, error) {
22
+ return &Process{Pid: pid}, nil
23
+}
24
25
+func (p *Process) release() error {
26
+ // NOOP for unix.
27
+ p.Pid = -1
28
+ // no need for a finalizer anymore
29
+ runtime.SetFinalizer(p, nil)
30
+ return nil
31
32
33
// On the aarch64 architecture, the fork system call is not available.
34
// Therefore, the fork function is implemented to return an error.
0 commit comments