Add nginx helper tests
This commit is contained in:
parent
c3873a60e6
commit
9124a47ee9
2 changed files with 45 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ import (
|
|||
"github.com/ncabatoff/process-exporter/proc"
|
||||
)
|
||||
|
||||
// IsRespawnIfRequired checks if error type is exec.ExitError or not
|
||||
func IsRespawnIfRequired(err error) bool {
|
||||
exitError, ok := err.(*exec.ExitError)
|
||||
if !ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue