Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/k1low/exec
- Owner: k1LoW
- License: mit
- Created: 2019-07-21T16:34:45.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T05:14:58.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:01:58.348Z (5 months ago)
- Topics: exec, pgid, process-group
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)