mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-16 12:54:22 +01:00
Use pidfd_open and poll on newer versions of Linux to wait for the process to exit. For older versions use existing wait logic Fixes: #5617 Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>
17 lines
404 B
Go
17 lines
404 B
Go
// Copyright (c) 2022 Apple Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package utils
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
func GetDevicePathAndFsTypeOptions(mountPoint string) (devicePath, fsType string, fsOptions []string, err error) {
|
|
return
|
|
}
|
|
|
|
func waitForProcessCompletion(pid int, timeoutSecs uint, logger *logrus.Entry) bool {
|
|
return waitProcessUsingWaitLoop(pid, timeoutSecs, logger)
|
|
}
|