proc

package
v0.0.0-...-abfce65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBadPID

type ErrBadPID struct {
	PID int
}

func (*ErrBadPID) Error

func (e *ErrBadPID) Error() string

type Process

type Process struct {
	ID   int
	Task js.Value

	Path string
	Args []string
	Env  map[string]string
	Dir  string
}

func (*Process) Output

func (p *Process) Output() io.ReadCloser

func (*Process) Stderr

func (p *Process) Stderr() io.ReadCloser

func (*Process) Stdin

func (p *Process) Stdin() io.WriteCloser

func (*Process) Stdout

func (p *Process) Stdout() io.ReadCloser

func (*Process) Terminate

func (p *Process) Terminate() error

func (*Process) Wait

func (p *Process) Wait() (int, error)

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Get

func (s *Service) Get(pid int) (*Process, error)

func (*Service) GetAll

func (s *Service) GetAll() map[int]*Process

Returns a copy of all running processes at the time of invocation.

func (*Service) Initialize

func (s *Service) Initialize()

func (*Service) InitializeJS

func (s *Service) InitializeJS()

func (*Service) Spawn

func (s *Service) Spawn(path string, args []string, env map[string]string, dir string) (*Process, error)

Directories

Path Synopsis
exec is a cheap knock-off of os/exec to be used by userland programs to spawn subprocesses with the wanix kernel.
exec is a cheap knock-off of os/exec to be used by userland programs to spawn subprocesses with the wanix kernel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL