Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88526
| From | Nobody <nobody@nowhere.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Help with pipes, buffering and pseudoterminals |
| Date | 2015-04-06 01:06 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <pan.2015.04.06.00.06.45.468000@nowhere.invalid> (permalink) |
| References | <c9c407e4-4914-4f5d-8ff3-ae1ac083cb82@googlegroups.com> |
On Sun, 05 Apr 2015 12:20:48 -0700, Daniel Ellis wrote:
> This only seems to print from the parent process. I read that I need to
> do the os.read call for the fork to happen. I've also tried printing
> *after* the os.read call.
The child process has its std{in,out,err} attached to the newly-created
pty, so that's where the output from the child's "print" goes.
You'll see that output if the parent prints the string returned from the
os.read() call.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help with pipes, buffering and pseudoterminals Daniel Ellis <ellisd23@gmail.com> - 2015-04-05 12:20 -0700
Re: Help with pipes, buffering and pseudoterminals Nobody <nobody@nowhere.invalid> - 2015-04-06 01:06 +0100
Re: Help with pipes, buffering and pseudoterminals Cameron Simpson <cs@zip.com.au> - 2015-04-06 10:11 +1000
Re: Help with pipes, buffering and pseudoterminals Daniel Ellis <ellisd23@gmail.com> - 2015-04-06 21:13 -0700
Re: Help with pipes, buffering and pseudoterminals Nobody <nobody@nowhere.invalid> - 2015-04-10 15:18 +0100
csiph-web