def kick_adb():
	name = multiprocessing.current_process().name
	ADBKICK = "%s/adb kill-server"
	#whatever the next issue of adb is, it will automatically start the server again
	cmd = ADBKICK % ( ADBPATH )
	logger.info( name + ":" + cmd)
	try:
		args = shlex.split(cmd)
		pKick = subprocess.Popen(args)
		pKick.terminate()
	except:
		logger.info( name + ":" + "adb kick error", sys.exc_info()[0])
dataset/ETHPy150Open tvidas/a5/scripts/bin/control.py/kick_adb/original