On Sun, Jul 19, 2009 at 10:30:41AM +0100, Charles Forsyth wrote:
> >perhaps i've been asleep at the swtch, but i don't recall seing writes
> >on closed channels terminate programs with a note.
> 
> sys: write on closed pipe
> 
> mainly to kill off a pipeline when the thing at the end has finished.
> i think that might be the only instance where a note is used.

not for network connections?  that's what happens on unix at least, eg:

        A SIGPIPE signal is raised if a process sends on a broken stream;
        this causes naive processes, which do not handle the signal,
        to exit.

and because of that, on hosted inferno an exception is raised on sigpipe.
with the light use of threads, which are sometimes used to respond on a
limbo channel after completion of a job, that can be tricky (if you're
not aware of it;  i usually forget to consider the case).

mjl

Reply via email to