version 1.6, 2007/08/03 02:34:08
|
version 1.6.2.2, 2007/12/01 01:16:33
|
|
|
return true; | return true; |
} | } |
| |
#elif defined(PEGASUS_OS_TYPE_UNIX) || defined(PEGASUS_OS_VMS) |
#elif defined(PEGASUS_OS_TYPE_UNIX) || \ |
|
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", pid); |
sprintf(path, "/proc/%d", (int)pid); |
if (stat(path, &statBuffer) == -1) // process stopped running | if (stat(path, &statBuffer) == -1) // process stopped running |
{ | { |
return false; | return false; |