Sujet : Re: Faking a TTY on a pipe/socketpair
De : apple.universe (at) *nospam* posteo.net (Eric Pozharski)
Groupes : comp.unix.programmerDate : 18. Nov 2024, 08:54:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnvjlsle.s3j.apple.universe@freight.zombinet>
References : 1 2
User-Agent : slrn/1.0.3 (Linux)
with <
20241117093714.675@kylheku.com> Kaz Kylheku wrote:
On 2024-11-16, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
So my question is - is there a way to set up a pipe or socketpair**
so that it appears to be a tty from the exec'd programs point of
view, eg ttyname() returns non null?
*SKIP* [ 18 lines 2 levels deep]
The GNU C Library has a mechanism to override this, driven by
environment variables, and a wrapper utility callet "stdbuf" which
uses the environment variables to tell a child process what buffering
discipline to use for stdin, stdour or stderr.
Now I understand what's going on (back then I've come to conclusions and
called names (AKA -- I'd been pissed off by 9 out of 12); I was
wrong). But variables? Neither stdbuf(1) nor setbuf(3) give any
directions. What should I read?
*CUT* [ 6 lines 1 level deep]
-- Torvalds' goal for Linux is very simple: World DominationStallman's goal for GNU is even simpler: Freedom