can't keep reading from a pipe #3

Open
opened 2024-02-01 23:47:14 +01:00 by PlexSheep · 1 comment
Owner
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

``` 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 added the
Kind/Bug
Priority
Medium
Reviewed
Confirmed
labels 2024-05-23 14:53:40 +02:00
Author
Owner

This is too annoying to fix right now, maybe later.

This is too annoying to fix right now, maybe later.
PlexSheep added
Priority
Low
and removed
Priority
Medium
labels 2024-05-24 09:24:45 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/hedu#3
No description provided.