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?
#7
SIGPIPE happens when the read end is closed, not when there is just no read() call that is active (the file descriptor, when closed, is no longer there). i was originally confusing this distinction when i was doing the initial logic design of my current project being done in Python. this revealed to me that my memory about the system semantics was fuzzy, hence the idea to do some things in C, again, particularly, using Python to prototype some of those designs.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: which exception - by Gribouillis - Jan-06-2023, 09:16 AM
RE: which exception do you get when you os.write() to a pipe that has nothing reading it? - by Skaperen - Jan-08-2023, 10:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pipe(s) in = subprocess.Popen() Skaperen 0 1,830 Feb-13-2021, 11:48 PM
Last Post: Skaperen
  re-open a Popen pipe in non-binary mode Skaperen 2 4,118 Jul-29-2019, 05:25 PM
Last Post: Skaperen
  stdin input while copying from a process pipe Skaperen 0 1,591 Jul-18-2019, 12:15 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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