Re: [LIP] fork()...

"Josy P. Pullockara" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization National Aerospace Laboratories
Message-ID <[email protected]>
On Thu, 2004-04-22 at 06:37, [email protected] wrote:
> if we assume that fork() doesn't return 0 for child.
> then what else it can return.
> 
> lets assume it returns parent pid, 
> then i want to know what are the consqueces for it?

You will not know which is the parent process and which one is the child
unless of-course you use getppid() to compare the parent process id
which you want returned by fork.

> benefits one api will reduce. getppid();

As above this API will not reduce!

Regards.
-- 
Josy P. Pullockara

Scientist,                             eMail:[email protected]
Computational and Theoretical          Phone:+91-80-2505 1627
Fluid Dynamics Division,               Fax  :+91-80-2522 0952
National Aerospace Laboratories        Res. :+91-80-2524 5053
----------------------------------------------------------------------
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.