version 1.6.2.2, 2007/12/01 01:16:33
|
version 1.7, 2007/11/28 20:38:34
|
|
|
#endif | #endif |
| |
#if defined(PEGASUS_OS_AIX) || defined(PEGASUS_OS_PASE) | #if defined(PEGASUS_OS_AIX) || defined(PEGASUS_OS_PASE) |
extern "C" |
|
{ |
|
# include <procinfo.h> | # include <procinfo.h> |
extern int getprocs(struct procsinfo *, int, struct fdsinfo *, int,pid_t *,int); |
|
# define PROCSIZE sizeof(struct procsinfo) | # define PROCSIZE sizeof(struct procsinfo) |
|
# if PEGASUS_AIX_VERSION <= 5 |
|
// AIX version 5 does not define getprocs() in procinfo.h |
|
extern "C" |
|
{ |
|
extern int getprocs( |
|
struct procsinfo *, int, struct fdsinfo *, int,pid_t *,int); |
} | } |
#endif | #endif |
|
#endif |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
return true; | return true; |
} | } |
| |
#elif defined(PEGASUS_OS_TYPE_UNIX) || \ |
#elif defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VMS) |
defined(PEGASUS_OS_VMS) || \ |
|
defined(PEGASUS_OS_VXWORKS) |
|
| |
////////////////////////////////////// | ////////////////////////////////////// |
// | // |
|
|
static char path[32]; | static char path[32]; |
static struct stat statBuffer; | static struct stat statBuffer; |
| |
sprintf(path, "/proc/%d", (int)pid); |
sprintf(path, "/proc/%d", pid); |
if (stat(path, &statBuffer) == -1) // process stopped running | if (stat(path, &statBuffer) == -1) // process stopped running |
{ | { |
return false; | return false; |