mirror of https://github.com/k3s-io/k3s
Fix regex match doc of procfs.PidOf
parent
e80afed777
commit
55bfc8d7e6
|
@ -90,7 +90,7 @@ func PKill(name string, sig syscall.Signal) error {
|
|||
return utilerrors.NewAggregate(errList)
|
||||
}
|
||||
|
||||
// Find process(es) with a specified name (exact match)
|
||||
// Find process(es) with a specified name (regexp match)
|
||||
// and return their pid(s)
|
||||
func PidOf(name string) ([]int, error) {
|
||||
if len(name) == 0 {
|
||||
|
|
Loading…
Reference in New Issue