Python Forum
which exception do you get when you os.write() to a pipe that has nothing reading it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
which exception do you get when you os.write() to a pipe that has nothing reading it?
#2
(Jan-05-2023, 11:07 PM)Skaperen Wrote: i thought it would be BrokenPipeError so i tried some tests but i'm not getting anything.
Don't you get ANY error message? What does the program do? Does it hang while trying to write into the pipe? Please post the complete code so that we can try it.

If you manage to get a C level error code, you could perhaps build your custom exception by using the errno module and os.strerror().
Reply


Messages In This Thread
RE: which exception - by Gribouillis - Jan-06-2023, 09:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pipe(s) in = subprocess.Popen() Skaperen 0 2,495 Feb-13-2021, 11:48 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020