stub

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package stub is used to start and manage an elvish-stub process.

Index

Constants

This section is empty.

Variables

View Source
var Logger = util.GetLogger("[stub] ")

Functions

This section is empty.

Types

type BadSignal

type BadSignal struct {
	Error error
}

func (BadSignal) Signal

func (BadSignal) Signal()

func (BadSignal) String

func (bs BadSignal) String() string

type Stub

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

func NewStub

func NewStub(stderr *os.File) (*Stub, error)

NewStub spawns a new stub. The specified stderr is used for the subprocess.

func (*Stub) Alive

func (stub *Stub) Alive() bool

Alive reports whether the stub is alive.

func (*Stub) Chdir

func (stub *Stub) Chdir(dir string)

func (*Stub) IntSignals added in v0.4.0

func (stub *Stub) IntSignals() <-chan struct{}

IntSignals returns a channel into which interrupt signals are relayed.

func (*Stub) Process

func (stub *Stub) Process() *os.Process

func (*Stub) SetTitle

func (stub *Stub) SetTitle(s string)

SetTitle sets the title of the stub.

func (*Stub) Signals

func (stub *Stub) Signals() <-chan os.Signal

Signals returns a channel into which signals sent to the stub are relayed.

func (*Stub) State

func (stub *Stub) State() <-chan struct{}

State returns a channel that is closed when the stub exits.

func (*Stub) Terminate

func (stub *Stub) Terminate()

Terminate terminates the stub.

Jump to

Keyboard shortcuts

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