From: Alexander Schmidt Date: Fri, 9 Oct 2020 07:18:33 +0000 (+0200) Subject: be more tolerant on fifo writing X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/commitdiff_plain/53c312249e4237a9c7d9baad3d3922a3adec0c41?ds=inline be more tolerant on fifo writing --- diff --git a/src/mtxbot-post.py b/src/mtxbot-post.py index f7e5365..d1f713f 100755 --- a/src/mtxbot-post.py +++ b/src/mtxbot-post.py @@ -24,7 +24,7 @@ def send_line(line): posix.write(fifo, line) return except OSError as e: - if e.errno == errno.ENXIO: + if e.errno == errno.ENXIO or e.errno == errno.EAGAIN: time.sleep(1.0) finally: if fifo != -1: