1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-13 08:58:35 +03:00

ignore EINTR on connection error

This commit is contained in:
Adolfo Gómez García 2017-03-23 09:58:36 +01:00
parent 777ca4c016
commit f86712a05a

View File

@ -36,6 +36,7 @@ import sys
import six
import traceback
import pickle
import errno
from udsactor.utils import toUnicode
from udsactor.log import logger
@ -407,6 +408,8 @@ class ClientIPC(threading.Thread):
self.messageReceived()
except socket.error as e:
if e.errno == errno.EINTR:
continue # Ignore interrupted system call
logger.error('Communication with server got an error: {}'.format(toUnicode(e.strerror)))
# self.running = False
return