Couple of DREI patches

This commit is contained in:
Miroslav Stampar
2019-05-07 16:37:32 +02:00
parent 2e75662a6d
commit 2b57b4b54b
6 changed files with 10 additions and 11 deletions

View File

@@ -598,7 +598,7 @@ class Metasploit:
except select.error as ex:
# Reference: https://github.com/andymccurdy/redis-py/pull/743/commits/2b59b25bb08ea09e98aede1b1f23a270fc085a9f
if ex[0] == errno.EINTR:
if (ex[0] if six.PY2 else ex.errno) == errno.EINTR:
continue
else:
return proc.returncode