forked from vitalif/vitastor
Fix debug log "killing..." in CSI
parent
2f228fa96a
commit
247f0552db
|
@ -188,7 +188,6 @@ func (ns *NodeServer) unmapNbd(devicePath string)
|
||||||
|
|
||||||
func findByPidFile(pidFile string) (*os.Process, error)
|
func findByPidFile(pidFile string) (*os.Process, error)
|
||||||
{
|
{
|
||||||
klog.Infof("killing process with PID from file %s", pidFile)
|
|
||||||
pidBuf, err := os.ReadFile(pidFile)
|
pidBuf, err := os.ReadFile(pidFile)
|
||||||
if (err != nil)
|
if (err != nil)
|
||||||
{
|
{
|
||||||
|
@ -209,6 +208,7 @@ func findByPidFile(pidFile string) (*os.Process, error)
|
||||||
|
|
||||||
func killByPidFile(pidFile string) error
|
func killByPidFile(pidFile string) error
|
||||||
{
|
{
|
||||||
|
klog.Infof("killing process with PID from file %s", pidFile)
|
||||||
proc, err := findByPidFile(pidFile)
|
proc, err := findByPidFile(pidFile)
|
||||||
if (err != nil)
|
if (err != nil)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue