diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py index 474bcccd50dc7867efc452f93e69fbf805d939ad..7ecf4f5c601147832da50df00945e46104ea57f8 100644 --- a/scapy/sendrecv.py +++ b/scapy/sendrecv.py @@ -10,7 +10,7 @@ Functions to send and receive packets. import errno import cPickle,os,sys,time,subprocess import itertools -from select import select +from select import select,error from scapy.data import * from scapy import arch from scapy.config import conf @@ -132,6 +132,8 @@ def sndrcv(pks, pkt, timeout = None, inter = 0, verbose=None, chainCC=0, retry=0 inp = [] try: inp, out, err = select(inmask,[],[], remaintime) + except error as e: + continue except IOError, exc: if exc.errno != errno.EINTR: raise