Tspostat in python. Flexible and incremental
Samo Penic
2018-05-07 8842f426aabfcd3e8b9d6171a32af2c035d6b52c
Added pipe writer (non-blocking)
1 files added
10 ■■■■■ changed files
pipe-writer.py 10 ●●●●● patch | view | raw | blame | history
pipe-writer.py
New file
@@ -0,0 +1,10 @@
import errno
import os
try:
    fifo=os.open('mypipe', os.O_WRONLY | os.O_NONBLOCK)
    os.write(fifo,b"TEST")
except OSError as ex:
    if ex.errno == errno.ENXIO:
        print("came here")
        pass # try later