version 1.4, 2005/06/15 17:52:32
|
version 1.5, 2005/09/29 20:20:59
|
|
|
} | } |
| |
| |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_OS_SOLARIS) |
| |
//=========================================================================== | //=========================================================================== |
// NAME : verify_process_name | // NAME : verify_process_name |
|
|
| |
// get the process name to make sure it is the cimserver process | // get the process name to make sure it is the cimserver process |
// ATTN: skip verify for Solaris | // ATTN: skip verify for Solaris |
#if !defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
#if !defined(PEGASUS_OS_SOLARIS) |
if ((verify_process_name(path, getProcessName())) == -1) | if ((verify_process_name(path, getProcessName())) == -1) |
{ | { |
return -1; | return -1; |
|
|
} | } |
} | } |
#endif | #endif |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_OS_SOLARIS) |
if (get_proc(pid) != -1 ) | if (get_proc(pid) != -1 ) |
{ | { |
// cimserver is running | // cimserver is running |
|
|
kill(pid, SIGKILL); | kill(pid, SIGKILL); |
} | } |
#endif | #endif |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) || defined(PEGASUS_OS_SOLARIS) |
if (get_proc(pid) != -1 ) | if (get_proc(pid) != -1 ) |
{ | { |
kill(pid, SIGKILL); | kill(pid, SIGKILL); |