https://github.com/k1low/exec
*os/exec.Cmd with PGID set.
https://github.com/k1low/exec
exec pgid process-group
Last synced: 4 months 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 (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T05:14:58.000Z (over 2 years ago)
- Last Synced: 2024-05-02T00:01:58.348Z (about 1 year 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 [](https://github.com/k1LoW/exec/actions) [](https://github.com/k1LoW/exec/releases) [](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)