kvmtools/kvm/action.py
changeset 116 455b335e203d
parent 115 75c299d0bf5a
child 119 14a535ecb02d
equal deleted inserted replaced
115:75c299d0bf5a 116:455b335e203d
   141         """
   141         """
   142         if not self.is_running():
   142         if not self.is_running():
   143             print ("Guest is not running.")
   143             print ("Guest is not running.")
   144             return False
   144             return False
   145         try:    
   145         try:    
   146             os.kill(seto,lf.kvm_pid, 9)
   146             os.kill(self.kvm_pid, 9)
   147             sleep(0.8)
   147             sleep(0.8)
   148             self.is_running()
   148             self.is_running()
   149             sys.exit(0)
   149             sys.exit(0)
   150         except OSError, error_msg:
   150         except OSError, error_msg:
   151             print error_msg
   151             print error_msg