Jan-08-2023, 03:38 PM
(This post was last modified: Jan-08-2023, 03:38 PM by Gribouillis.)
Skaperen Wrote:i'm thinking i need to go back and do some stuff in C, again, just to get my brain thinking about the system.
I wonder if the problem is not related to PEP 475, the fact that a system call which fails with EINTR is automatically retried by the standard library wrappers such as os.write() without raising an exception.
If this is the problem, you could perhaps give your program a chance to handle it by setting a signal handler, perhaps to catch signal.SIGPIPE.
documentation Wrote:signal.SIGPIPE
Broken pipe: write to pipe with no readers.
Default action is to ignore the signal.
Availability: Unix.