Overview
| Comment: | Added shutdown of socket before exit |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a816083630430e15b8fa09950923640f |
| User & Date: | vitus on 2015-12-17 14:27:59.418 |
| Other Links: | manifest | tags |
Context
|
2015-12-17
| ||
| 14:31 | Incremented version number to 0.2 check-in: b07302139d user: vitus tags: trunk | |
| 14:27 | Added shutdown of socket before exit check-in: a816083630 user: vitus tags: trunk | |
| 12:47 | Implented snapshots check-in: d9a66bb196 user: vitus tags: trunk | |
Changes
Modified vws
from [6f0576d6d4]
to [aaa1316acd].
| ︙ | ︙ | |||
183 184 185 186 187 188 189 |
os.system("lsusb")
def cmd_usb_remove(options):
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):
| | < | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
os.system("lsusb")
def cmd_usb_remove(options):
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_vm_devices(options.sock):
print "Address %s : %s"%(t[0],t[1])
def cmd_list(options):
count = 0
search_path=[os.environ['HOME']+"/VWs",
config.get("directories","SharedVMs"),
config.get("directories","AutostartVMs")]
for dirname in search_path:
|
| ︙ | ︙ | |||
604 605 606 607 608 609 610 611 612 |
try:
func=globals()[funcname]
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.close()
| > | 603 604 605 606 607 608 609 610 611 612 |
try:
func=globals()[funcname]
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()
|