sigterm

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sigterm provides graceful termination signal utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c *exec.Cmd) error

Run is like calling Run on os/exec.CommandContext but uses SIGTERM on Unix-based systems.

func Start

func Start(ctx context.Context, c *exec.Cmd) (wait func() error, err error)

Start is like calling Start on os/exec.CommandContext but uses SIGTERM on Unix-based systems.

Types

This section is empty.

Jump to

Keyboard shortcuts

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