package
Version:
v0.0.0-...-d7273bf
Opens a new window with list of versions in this module.
Published: Nov 27, 2022
License: ISC
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package subreaper sets the process as the init for descendant
processes.
Get indicates whether the current process is the init process
for descendant processes.
package main
import (
"fmt"
"github.com/msantos/goreap/subreaper"
)
func main() {
fmt.Println(subreaper.Get())
}
Output:
true
Set configures the process as a subreaper.
package main
import (
"fmt"
"github.com/msantos/goreap/subreaper"
)
func main() {
if err := subreaper.Set(); err != nil {
fmt.Println("failed to set subreaper:", err)
}
}
Output:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.