9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] i/o on a hangup channel asymmetry
@ 2009-07-18 18:39 Roman V. Shaposhnik
  2009-07-19  1:06 ` erik quanstrom
  0 siblings, 1 reply; 22+ messages in thread
From: Roman V. Shaposhnik @ 2009-07-18 18:39 UTC (permalink / raw)
  To: 9fans

In the "mom, why sky is blue" department, here's a silly question:
is there any good reason that read(2) on a hangup channel returns
an error, while write(2) on a hangup channel terminates an application
(by generating a note, of course, which can be ignored, but still)?

Thanks,
Roman.

P.S. And btw, is there any way to make UNIX (POSIX) behave like Plan9
read(1)? The EOF on a hangup channel is actually misleading, its not
that the channel can be ever resumed...




^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-07-23 12:15 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-18 18:39 [9fans] i/o on a hangup channel asymmetry Roman V. Shaposhnik
2009-07-19  1:06 ` erik quanstrom
2009-07-19  9:30   ` Charles Forsyth
2009-07-19 20:32     ` Roman Shaposhnik
2009-07-19 21:01       ` Francisco J Ballesteros
2009-07-20  4:49         ` Roman Shaposhnik
2009-07-20  9:53           ` Charles Forsyth
2009-07-20 17:01             ` Roman V Shaposhnik
2009-07-20 18:38               ` Charles Forsyth
2009-07-19 21:11     ` Mechiel Lukkien
2009-07-19 21:55       ` Charles Forsyth
2009-07-20  4:52         ` Roman Shaposhnik
2009-07-20  5:21           ` erik quanstrom
2009-07-20 16:53             ` Roman V Shaposhnik
2009-07-21  1:01               ` erik quanstrom
2009-07-21  2:04                 ` Russ Cox
2009-07-21  2:15                   ` erik quanstrom
2009-07-23 12:15                     ` roger peppe
2009-07-20  9:52           ` Charles Forsyth
2009-07-20 17:14             ` Roman V Shaposhnik
2009-07-19 20:06   ` Roman Shaposhnik
2009-07-19 20:22     ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).