add FindProcess for posix

Signed-off-by: leongross <leon.gross@9elements.com>
This commit is contained in:
leongross
2024-04-04 11:52:53 +02:00
committed by Ron Evans
parent 20b58a0128
commit 3a8ef33c72
3 changed files with 43 additions and 1 deletions
+5
View File
@@ -19,3 +19,8 @@ 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
}