1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 22:47:16 +00:00

Clean up udevd zombie process

This commit is contained in:
niusmallnan 2018-11-23 14:30:09 +00:00 committed by niusmallnan
parent 50e72e629b
commit 3c998bef45

View File

@ -17,6 +17,7 @@ func udevSettleAction(c *cli.Context) {
func UdevSettle() error {
cmd := exec.Command("udevd", "--daemon")
defer exec.Command("killall", "udevd").Run()
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {