bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run.c translator


From: Thomas Bushnell, BSG
Subject: Re: run.c translator
Date: 19 Mar 2002 14:54:24 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

nisse@lysator.liu.se (Niels Möller) writes:

> tb@becket.net (Thomas Bushnell, BSG) writes:
> 
> > You want the "shutdown" call, which should do the right thing.
> 
> Does shutdown work on plain pipes, or is it it necessary to use
> socketpair instead of pipe? (Not that that is usually a problem, I'd
> recommend socketpair everytime, except if one actually needs the
> atomic PIPE_BUF behaviour).
> 
> Does the Hurd's shutdown work on the (master side) of a pty as well?

I'm baffled.  If it's a plain pipe, then you simply close the end
you're writing on, and the reader gets EOF.

I assumed the implementation used socketpairs, where closing your
writing half would prevent you from also reading on it.

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]