Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/k1low/exec

*os/exec.Cmd with PGID set.
https://github.com/k1low/exec

exec pgid process-group

Last synced: about 15 hours ago
JSON representation

*os/exec.Cmd with PGID set.

Awesome Lists containing this project

README

        

# exec [![CI](https://github.com/k1LoW/exec/actions/workflows/ci.yml/badge.svg)](https://github.com/k1LoW/exec/actions) [![GitHub release](https://img.shields.io/github/release/k1LoW/exec.svg)](https://github.com/k1LoW/exec/releases) [![GoDoc](https://godoc.org/github.com/k1LoW/exec?status.svg)](https://godoc.org/github.com/k1LoW/exec)

## Usage

``` golang
import (
// "os/exec"
"github.com/k1LoW/exec"
)
```

## Difference between `os/exec` and `k1LoW/exec`

- `k1LoW/exec.Command` returns `*os/exec.Cmd` with PGID set.
- When context cancelled, `k1LoW/exec.CommandContext` send signal to process group.

## References

- [Songmu/timeout](https://github.com/Songmu/timeout): Timeout invocation. Go porting of GNU timeout and able to use as Go package
- [k1LoW/exec](https://github.com/k1LoW/exec) is porting source code to handle processes from [Songmu/timeout](https://github.com/Songmu/timeout)