def send(self, input):
			if not self.stdin:
				return None

			if not select.select([], [self.stdin], [], 0)[1]:
				return 0

			try:
				written = os.write(self.stdin.fileno(), input)
			except __HOLE__, why:
				if why[0] == errno.EPIPE: #broken pipe
					return self._close('stdin')
				raise

			return written
dataset/ETHPy150Open owtf/owtf/framework/shell/async_subprocess.py/AsyncPopen.send