mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-01 05:02:02 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [github.com/hashicorp/vault/api](https://github.com/hashicorp/vault) from 1.1.1 to 1.2.0. - [Release notes](https://github.com/hashicorp/vault/releases) - [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/vault/compare/v1.1.1...v1.2.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/vault/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
25 lines
346 B
Go
25 lines
346 B
Go
package plugin
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// pidAlive checks whether a pid is alive.
|
|
func pidAlive(pid int) bool {
|
|
return _pidAlive(pid)
|
|
}
|
|
|
|
// pidWait blocks for a process to exit.
|
|
func pidWait(pid int) error {
|
|
ticker := time.NewTicker(1 * time.Second)
|
|
defer ticker.Stop()
|
|
|
|
for range ticker.C {
|
|
if !pidAlive(pid) {
|
|
break
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|