> > Rather than explain it to you I'll let you figure it out. You may
> > =never= figure it out, but maybe when you've been working on
> > UNIX internals for 20 years you'll learn to be more creative ...
>
> Then I'll ask a different question. Why use socketpair instead of
> using popen or ptys?
popen() is fine if you are doing an exec, want stdio buffering, and only
want to read or only want to write. (isn't popen a one-way pipe..?).
I'd never use ptys for this, not even sure how you'd attempt that. The
other machanism that is commonly used (besides socketpair) is pipe() twice,
close() accordingly, dup2(), then fork() and maybe exec()
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null