mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 05:53:39 +00:00
add FindProcess for posix
Signed-off-by: leongross <leon.gross@9elements.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user