From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain Date: Sat, 18 Jul 2009 11:39:40 -0700 From: "Roman V. Shaposhnik" To: 9fans <9fans@9fans.net> Message-id: <1247942380.5366.23.camel@goose.sun.com> Subject: [9fans] i/o on a hangup channel asymmetry Topicbox-Message-UUID: 25eff5d0-ead5-11e9-9d60-3106f5b1d025 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...