1
0
Fork 0

Fix debug log "killing..." in CSI

pull/2/head
Vitaliy Filippov 2024-01-10 01:19:18 +03:00
parent 2f228fa96a
commit 247f0552db
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,6 @@ func (ns *NodeServer) unmapNbd(devicePath string)
func findByPidFile(pidFile string) (*os.Process, error)
{
klog.Infof("killing process with PID from file %s", pidFile)
pidBuf, err := os.ReadFile(pidFile)
if (err != nil)
{
@ -209,6 +208,7 @@ func findByPidFile(pidFile string) (*os.Process, error)
func killByPidFile(pidFile string) error
{
klog.Infof("killing process with PID from file %s", pidFile)
proc, err := findByPidFile(pidFile)
if (err != nil)
{