Re: [LIP] fork()...

"Vikas Saurabh" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
i am pretty new to linux and had been a silent listener till now....but i
guess i can speak at this moment

i guess rather than simply returning the parent pid if the return is
something like -(ppid) then getppid() call is saved and also we have the
sign to check whether the process is parent or child
-- 


_|    _|  _|  _|    _|    _|_|      _|_|_|
_|    _|  _|  _|  _|    _|    _|  _|
 _|  _|   _|  _|_|      _|_|_|_|    _|_|
  _|_|    _|  _|  _|    _|    _|        _|
   _|     _|  _|    _|  _|    _|  _|_|_|


(Vikas Saurabh)
7th Sem
IIIT - Allahabad

-------------------------------------------------
Linux - It is now safe to power ON your computer.
-------------------------------------------------

> this was a good question?
> lets think from designer point of view.
> if we assume that fork() doesn't return  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  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
> _______________________________________________
> linux-india-programmers mailing list
> linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/linux-india-programmers
>



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