mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 15:20:17 +00:00
Fix regex match doc of procfs.PidOf
This commit is contained in:
parent
e80afed777
commit
55bfc8d7e6
@ -90,7 +90,7 @@ func PKill(name string, sig syscall.Signal) error {
|
|||||||
return utilerrors.NewAggregate(errList)
|
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)
|
// and return their pid(s)
|
||||||
func PidOf(name string) ([]int, error) {
|
func PidOf(name string) ([]int, error) {
|
||||||
if len(name) == 0 {
|
if len(name) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user