iodaemon

package
v0.0.0-...-499d384 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spawn

func Spawn(
	socketPath string,
	argv []string,
	timeout time.Duration,
	notifyStream io.WriteCloser,

	wirer *Wirer,
	daemon *Daemon,
) error

spawn listens on a unix socket at the given socketPath and when the first connection is received, starts a child process.

Types

type Daemon

type Daemon struct {
	WithTty bool
}

func (*Daemon) HandleConnection

func (d *Daemon) HandleConnection(conn io.ReadCloser, process *os.Process, stdin, extraFd *os.File)

type Wirer

type Wirer struct {
	WithTty       bool
	WindowColumns int
	WindowRows    int
}

func (*Wirer) Wire

func (w *Wirer) Wire(cmd *exec.Cmd) (*os.File, *os.File, *os.File, *os.File, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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