version 1.25, 2004/01/14 14:08:04
|
version 1.26, 2004/06/29 16:43:36
|
|
|
// happen after a system reboot. If the pids are the same, cimserver | // happen after a system reboot. If the pids are the same, cimserver |
// isn't really running. | // isn't really running. |
// | // |
pid_t mypid = getpid(); |
Uint32 mypid = System::getPID(); |
if (mypid == pid) |
if ((mypid == pid) || (parentPid == pid)) |
{ | { |
return -1; | return -1; |
} | } |
|
|
// process, this could happen after a system reboot. If the pids are | // process, this could happen after a system reboot. If the pids are |
// the same, cimserver isn't really running. | // the same, cimserver isn't really running. |
// | // |
pid_t mypid = getpid(); |
Uint32 mypid = System::getPID(); |
if (mypid != pid) |
if ((mypid != pid) && (parentPid != pid)) |
{ | { |
// cimserver is running | // cimserver is running |
return true; | return true; |