in reply to Testing whether a process has finished
I can not use waitpid, because this would suspend my program until the process is finished.
You should read the docs again. It's not necessarily so.
From the description of the kill function, I thought that sending signal 0 to the process would tell me, whether it is still running:
That's not what the docs say. It tests whether the process still exists, not whether it's running.
But this always returns true, even though I can see that the process has already finished long time ago. What am I doing wrong?
I explained this to you yesterday! Is there something you didn't understand?
Update: Added second para
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing whether a process has finished
by ELISHEVA (Prior) on Sep 10, 2009 at 15:39 UTC | |
by ikegami (Patriarch) on Sep 10, 2009 at 16:03 UTC | |
by rovf (Priest) on Sep 11, 2009 at 09:56 UTC | |
by rovf (Priest) on Sep 11, 2009 at 09:41 UTC | |
by ikegami (Patriarch) on Sep 11, 2009 at 14:14 UTC | |
|
Re^2: Testing whether a process has finished
by rovf (Priest) on Sep 11, 2009 at 09:28 UTC | |
by ikegami (Patriarch) on Sep 11, 2009 at 14:26 UTC |