linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Doug McNaught <doug@mcnaught.org>
To: Andrew Barton <andrevv@users.sourceforge.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: forkpty with streams
Date: 25 Jul 2003 09:02:53 -0400	[thread overview]
Message-ID: <m3el0esqrm.fsf@varsoon.wireboard.com> (raw)
In-Reply-To: Andrew Barton's message of "24 Jul 2003 23:28:36 +0000"

Andrew Barton <andrevv@users.sourceforge.net> writes:

> I've got the 2.4 kernel, and I'm trying to use the forkpty() system call
> with the standard I/O stream functions. The calls to forkpty() and
> fdopen() and fprintf() all return successfully, but the data never seems
> to get to the child process. In this simplified example, I am trying to
> open a shell in a pseudo terminal and then send it the string "exit\n"
> and then wait for it to die. But the shell apparently never sees the
> "exit\n", and the parent waits forever.

forkpty() is not a system call.  This is more likely to be a glibc
issue or a problem with your code.  You might consider running your
test under 'strace' to see what is happening under the covers.

-Doug

  reply	other threads:[~2003-07-25 12:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-24 23:28 Andrew Barton
2003-07-25 13:02 ` Doug McNaught [this message]
2003-07-25 15:27 ` Andries Brouwer
2003-07-25 10:59   ` Andrew Barton
2003-07-25 18:46     ` Matti Aarnio
2003-07-25 12:53       ` Andrew Barton
2003-07-25 20:10     ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3el0esqrm.fsf@varsoon.wireboard.com \
    --to=doug@mcnaught.org \
    --cc=andrevv@users.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: forkpty with streams' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).