0

What does waitpid () do?

 4 years ago
source link: https://www.codesd.com/item/what-does-waitpid-do.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

What does waitpid () do?

advertisements

What is the use of waitpid()?


It's used generally to wait until a specific process finishes (or otherwise changes state if you're using special flags), based on its process ID (otherwise known as a pid).

It can also be used to wait for any of a group of child processes, either one from a specific process group or any child of the current process.

See here for the gory details.

Related Articles

What does this code do? C

I'm trying to figure out what does this code do, and I could use some help. int sethandler( void (*f)(int), int sigNo) { struct sigaction act; memset(&act, 0, sizeof(struct sigaction)); act.sa_handler = f; if (-1==sigaction(sigNo, &act, NULL)) ret

Instance message error in Objective-C, what does it mean? And why is it happening?

I get the below error hor no apparent reason, I would try to fix it myself but I can't understand what it means. Does anyone else understand it? Here is the error and below it is the code. Error: Receiver Type 'NSdata' for instance message does not d

What does (a + b) & gt; & Gt; 1?

What does int c = (a+b) >>1 mean in C++?Note, that there can't be any meaningful explanation of what your code means until you explain what a and b are. Even if a and b are of built-in type, beware of the incorrect answers unconditionally claiming t

What does {0} mean in Console.WriteLine?

Given the code : // person.cs using System; // #if false class Person { private string myName = "N/A"; private int myAge = 0; // Declare a Name property of type string: public string Name { get { return myName; } set { myName = value; } } // Dec

What does the (+) operator mean in a PL / SQL where clause?

I have a SQL query something like:- Select Table1.attr1, Table1.attr2, Table2.attr3, Table2.attr4 From Tab1 Tabel1, Tab2 Tabel2 Where Tabel1.Attr = Tabel2.Attr (+) So what does the above mean? Is this a right outer join?Yes, it means right join. if t

What does the unique expression mean here?

From the answer here. class wrap { public: operator obj() const & { ... } //Copy from me. operator obj() && { ... } //Move from me. private: obj data_; }; I know the && means that the member will be invoked when the object is an rvalue

What does 'ccp' mean in Cocos2d / Objective-C?

I keep seeing a phrase like this: //Example one CGPoint backgroundScrollVel = ccp(-1000, 0); //Another Example // 3) Determine relative movement speeds for space dust and background CGPoint dustSpeed = ccp(0.1, 0.1); CGPoint bgSpeed = ccp(0.05, 0.05)

What does BUNDLE_DISABLE_SHARED_GEMS mean: '1'?

I found BUNDLE_DISABLE_SHARED_GEMS: '1', in .bundle/config. What does it mean?Bundler takes some settings from the ~/.bundle/config file -- not from the shell env. When set to true (default), the install of all gems will be to BUNDLE_PATH, regardless

What does this statement mean in the assembly?

When tackling to translate the following segment of code, can someone tell me the purpose of ptr being there? cmp byte ptr [eax], 0 ptr is a label, it has the value: (++> My understanding with cmp is that it compares the value on the left, with the v

What does this bash script do?

What does this line of bash do? :(){ :|:& };: My guess it's something nasty which is why I haven't tried running it to see. Could someone explain with a dissection of the code?First it creates a function named ":" (colon): :(){ :|:& } ..

What does RtlRestoreContext do when ExceptionCode is STATUS_UNWIND_CONSOLIDATE?

I'm trying to understand how C++ exception handling is implemented on x64 by Visual C++ runtime. Upon reading the Nynaeve blog on SEH implementation on x64 at http://www.nynaeve.net/?p=110, it seems that RtlUnwindEx calls RtlRestoreContext with the E

Valgrind reports a possible battery overflow - what does that mean?

When I run my C program file using valgrind, I get the following error and segmentation fault. What does it mean? I got this error due to recursive call of one function more deep i allocated 9684173 bytes for character pointer i malloc successfully a

What does Heroku run rake Do not know how to create a task 'default' means?

When I went to heroku run rake Rake was aborted and the next line said, Don't know how to build task 'default' Ran heroku run rake --trace and got Running `rake --trace` attached to terminal... up, run.3479 DEPRECATION WARNING: You have Rails 2.3-sty

What does Git (master | REBASE 1/1) mean? How do I get rid of this?

I'm kind of a git beginner and I was attempting to roll back to a previous commit. But I accidentally just rolled back the commit (I was using the Windows GUI). Anyway, after some weird pushing, merging, and other confusing stuff I didn't quite under

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK