linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ophan child process to take standard input
@ 2005-09-04 18:49 Karol Banczyk
  2005-09-05  5:33 ` Steve Graegert
  0 siblings, 1 reply; 4+ messages in thread
From: Karol Banczyk @ 2005-09-04 18:49 UTC (permalink / raw)
  To: linux-c-programming

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-05 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-04 18:49 ophan child process to take standard input Karol Banczyk
2005-09-05  5:33 ` Steve Graegert
2005-09-05 17:42   ` Karol Banczyk
2005-09-05 18:01     ` 386 demand paged pure executable Nanakos Chrysostomos

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).