File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def list_pids():
75
75
''' Find the pid of kvm processes
76
76
@return a list of pids from running kvm
77
77
'''
78
- pid = Popen ("pidof kvm" , shell = True , stdout = PIPE )
78
+ pid = Popen ("pidof qemu-kvm kvm" , shell = True , stdout = PIPE )
79
79
return pid .communicate ()[0 ].split ()
80
80
81
81
def fetch (vms ):
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def list_pids():
92
92
''' Find the pid of kvm processes
93
93
@return a list of pids from running kvm
94
94
'''
95
- pid = Popen ("pidof kvm" , shell = True , stdout = PIPE )
95
+ pid = Popen ("pidof qemu-kvm kvm" , shell = True , stdout = PIPE )
96
96
return pid .communicate ()[0 ].split ()
97
97
98
98
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def list_pids():
89
89
''' Find the pid of kvm processes
90
90
@return a list of pids from running kvm
91
91
'''
92
- pid = Popen ("pidof kvm" , shell = True , stdout = PIPE )
92
+ pid = Popen ("pidof qemu-kvm kvm" , shell = True , stdout = PIPE )
93
93
return pid .communicate ()[0 ].split ()
94
94
95
95
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments