Index: vws ================================================================== --- vws +++ vws @@ -185,13 +185,12 @@ address=find_usb(options,get_vm_devices(options.sock)) answer=send_command(options.sock,"usb_del %s" % address) print answer def cmd_usb_attached(options): - for t in get_host_devices(options.sock): + for t in get_vm_devices(options.sock): print "Address %s : %s"%(t[0],t[1]) - print answer def cmd_list(options): count = 0 search_path=[os.environ['HOME']+"/VWs", config.get("directories","SharedVMs"), @@ -606,7 +605,8 @@ except KeyError: print >>sys.stderr,"Operation %s is not implemented"%funcname sys.exit(3) func(parsed_args) if hasattr(parsed_args,'sock') and parsed_args.sock is not None: + parsed_args.sock.shutdown(socket.SHUT_RDWR) parsed_args.sock.close()