mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #41330 from feiskyer/fix
Automatic merge from submit-queue (batch tested with PRs 41706, 39063, 41330, 41739, 41576) Fix regex match doc of procfs.PidOf Fixes #41247. cc @bboreham
This commit is contained in:
commit
98962212a3
@ -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
Block a user