spawn

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package spawn starts the processes lys-wm launches from a spawner: a child lys-wm starts before it changes its own limits or scheduling, which keeps what lys-wm started with and hands it to every process it forks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Path        string
	Args        []string
	Env         []string
	Stdout      io.Writer
	Stderr      io.Writer
	ExtraFiles  []*os.File
	Setsid      bool
	DeathSignal syscall.Signal
}

type ExitError

type ExitError struct {
	Status syscall.WaitStatus
}

func (*ExitError) Error

func (e *ExitError) Error() string

type Process

type Process struct {
	Pid int
	// contains filtered or unexported fields
}

func (*Process) Signal

func (p *Process) Signal(sig syscall.Signal) error

func (*Process) Wait

func (p *Process) Wait() error

type Spawner

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

func Start

func Start() (*Spawner, error)

func (*Spawner) Close

func (s *Spawner) Close() error

func (*Spawner) Spawn

func (s *Spawner) Spawn(c Command) (*Process, error)

Jump to

Keyboard shortcuts

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