https://github.com/snabb/tcxpgrp
Go package tcxpgrp provides POSIX.1 tcgetpgrp and tcsetpgrp functions. (golang)
https://github.com/snabb/tcxpgrp
go golang linux process unix
Last synced: 4 months ago
JSON representation
Go package tcxpgrp provides POSIX.1 tcgetpgrp and tcsetpgrp functions. (golang)
- Host: GitHub
- URL: https://github.com/snabb/tcxpgrp
- Owner: snabb
- License: mit
- Created: 2019-02-28T20:05:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-19T10:14:05.000Z (over 3 years ago)
- Last Synced: 2024-06-19T15:16:42.712Z (about 2 years ago)
- Topics: go, golang, linux, process, unix
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tcxpgrp
=======
[](https://pkg.go.dev/github.com/snabb/tcxpgrp)
[](https://goreportcard.com/report/github.com/snabb/tcxpgrp)
The Go package tcxpgrp implements POSIX.1 (IEEE Std 1003.1) tcgetpgrp
and tcsetpgrp functions.
There is also a function for determining if the calling process is a
foreground process.
This package is Linux/UNIX specific.
Documentation
-------------
https://pkg.go.dev/github.com/snabb/tcxpgrp
Example
-------
Determine if a process is foreground or background process:
```Go
fg := tcxpgrp.IsForeground()
fmt.Println("foreground:", fg)
// Output: foreground: true
// or
// Output: foreground: false
```
Repository
----------
https://github.com/snabb/tcxpgrp
License
-------
MIT