Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90d84e
)
python: Ignore EINTR in serveloop.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 15 Jul 2023 14:03:38 +0000
(16:03 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 15 Jul 2023 14:03:38 +0000
(16:03 +0200)
python3/ashd/util.py
patch
|
blob
|
blame
|
history
diff --git
a/python3/ashd/util.py
b/python3/ashd/util.py
index
3818e4b
..
bf32637
100644
(file)
--- a/
python3/ashd/util.py
+++ b/
python3/ashd/util.py
@@
-161,7
+161,10
@@
def serveloop(handler, sock = 0):
and is called once for each received request.
"""
while True:
- req = proto.recvreq(sock)
+ try:
+ req = proto.recvreq(sock)
+ except InterruptedError:
+ continue
if req is None:
break
try: