linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* opening standard streams - who does that?
@ 2002-07-06 15:30 Suriya Narayanan M S
  2002-07-07  7:26 ` Glynn Clements
  0 siblings, 1 reply; 4+ messages in thread
From: Suriya Narayanan M S @ 2002-07-06 15:30 UTC (permalink / raw)
  To: linux-c-programming

Hi all,
	I want to know who opens the streams
stdin, stdout, stderr in file-descriptors 1, 2, 3
and calls the process. I know (right or wrong?)
that on a fork the filedescriptors are duplicated.
So bash or the shell can just forks a new process
without assinging the fds. Is it the kernel
which assigns 0 to the keyboard. How is this
done?

Thanks in advance,
Suriya Narayanan M S
-- 
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha

Public key at www.keyserver.net


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

end of thread, other threads:[~2002-07-08 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-06 15:30 opening standard streams - who does that? Suriya Narayanan M S
2002-07-07  7:26 ` Glynn Clements
2002-07-08 17:53   ` Chuck Winters
2002-07-08 20:27     ` Marius Nita

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