All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prasanta Sadhukhan <Prasanta.Sadhukhan@Sun.COM>
To: linux-c-programming@vger.kernel.org
Subject: Running status of a process
Date: Wed, 21 Mar 2007 13:43:21 +0530	[thread overview]
Message-ID: <4600E921.5010106@sun.com> (raw)

Hi,

Can anyone point as to how can I obtain the information whether a 
non-child process is still running?

I tried waitpid(pid, &status, WNOHANG) but always receive return value 
as -1 with errno as ECHILD.
Since the processes I am waiting for is not the child of this process 
from where I am calling waitpid() (ie, they are independant processes), 
it might be a valid error but what is the other alternative?

Regards
Prasanta


             reply	other threads:[~2007-03-21  8:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-21  8:13 Prasanta Sadhukhan [this message]
2007-03-21  8:30 ` Running status of a process Steve Graegert
2007-03-21  8:34   ` Prasanta Sadhukhan
2007-03-21  8:33 ` Prasanta Sadhukhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4600E921.5010106@sun.com \
    --to=prasanta.sadhukhan@sun.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.