LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2009, 02:09 AM   #1
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 154

Rep: Reputation: 15
pls tell difference between waitpid(pid,&status,0) and waitpid(pid,&status,WNOHANG)


please tell the difference between waitpid(pid,&status,0) and waitpid(pid,&status,WNOHANG)


ThankU,
Nagendra R
 
Old 07-08-2009, 03:10 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What does the man-page say?
 
Old 07-08-2009, 03:27 AM   #3
nagendrar
Member
 
Registered: Apr 2008
Location: HYD, INDIA.
Posts: 154

Original Poster
Rep: Reputation: 15
WNOHANG return immediately if no child has exited.

But I want to know about 'zero' in waitpid(pid,&status,0);

ThankU,
Nagendra R
 
Old 07-08-2009, 08:51 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As per Tinkster,
http://linux.die.net/man/2/waitpid
http://linux.die.net/man/3/waitpid
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uid and gid fileds from /proc/pid/status sanjaykhuntia Linux - Enterprise 2 02-11-2011 01:35 PM
Is there any system function/api to get values like /proc/<pid>/status ??? kunalnandi Linux - Newbie 2 05-02-2009 01:22 AM
how to read /proc/pid/status in sched.c linuxdoniv Programming 3 07-21-2008 09:49 PM
how to get process status using pid? hongxing Linux - Software 2 04-11-2006 07:11 AM
VmSize : Regarding /proc/<pid>/status shivaligupta Programming 0 04-06-2006 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration