Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't keep reading from a pipe #2

Open
PlexSheep opened this issue Oct 16, 2024 · 0 comments
Open

can't keep reading from a pipe #2

PlexSheep opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PlexSheep
Copy link
Owner

See https://git.cscherr.de/PlexSheep/hedu/issues/3

plex@theseus /tmp % hedu foofo -c
──────────────────────────────────── foofo ─────────────────────────────────────
DATA IDX │ DATA AS HEX                                      │ DATA AS CHAR
────────────────────────────────────────────────────────────────────────────────
00000000 │ 68 65 6C 6C 6F 20 77 6F  72 6C 64 68 65 6C 6C 6F │ |hello␣worldhello|
00000006 │ 20 77 6F 72 6C 64                                │ |␣world|
────────────────────────────────────────────────────────────────────────────────
00000016 │ read total:              22 B     (22 B)         │
plex@theseus /tmp % 

trying to read a fifo

In [19]: f = open("foofo", "w")

In [20]: while True:
    ...:     f.write("loop-")
    ...:     time.sleep(1)
    ...:     f.flush()
    ...: 
---------------------------------------------------------------------------
BrokenPipeError                           Traceback (most recent call last)
Cell In[20], line 4
      2 f.write("loop-")
      3 time.sleep(1)
----> 4 f.flush()

BrokenPipeError: [Errno 32] Broken pipe

but hedu quickly stops reading from it, resulting in a broken pipe for the writer process

@PlexSheep PlexSheep added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant