linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karol Banczyk <car-los@tlen.pl>
To: linux-c-programming@vger.kernel.org
Subject: ophan child process to take standard input
Date: Sun, 04 Sep 2005 20:49:38 +0200	[thread overview]
Message-ID: <dfffk2$fp8$1@sea.gmane.org> (raw)

Hello,
	I'm solving an exercise from my school. Not to go into details - the
task is to create a initiating process which in turn starts three new
processes  and then finishes its work. The three processes are to
communicate with pipes. There's no problem till this stage. But there's
the catch. The first of the three processes has to get its input from
the standard input and this works only as long as the parent
(initiating) process is alive. When the parent finishes the standard
input goes back to bash and the orphaned processes are adopted by the
init process having no access to stdin.

	What do you think? Is it a bug in the exercise or is there really a
(non-cosmic) way to achive the goal.


Thanx in advance

KB


             reply	other threads:[~2005-09-04 18:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-04 18:49 Karol Banczyk [this message]
2005-09-05  5:33 ` ophan child process to take standard input Steve Graegert
2005-09-05 17:42   ` Karol Banczyk
2005-09-05 18:01     ` 386 demand paged pure executable Nanakos Chrysostomos

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='dfffk2$fp8$1@sea.gmane.org' \
    --to=car-los@tlen.pl \
    --cc=linux-c-programming@vger.kernel.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).