Re: [LIP] fork()...
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
this was a good question? lets think from designer point of view. 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? benefits one api will reduce. getppid(); Regards, Santosh ----- Original Message ----- From: "Sameer Oak" <[email protected]> To: <linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Sent: Wednesday, April 21, 2004 12:28 PM Subject: [LIP] fork()... > > why does a fork() system call return 0 to the newly created child > process? > - > sameer oak. > > ********************************************************* > Disclaimer: > > This message (including any attachments) contains > confidential information intended for a specific > individual and purpose, and is protected by law. > If you are not the intended recipient, you should > delete this message and are hereby notified that > any disclosure, copying, or distribution of this > message, or the taking of any action based on it, > is strictly prohibited. > > ********************************************************* > Visit us at http://www.mahindrabt.com > > > ------------------------------------------------------- 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