version 1.6, 2002/05/31 18:13:24
|
version 1.7, 2002/05/31 19:27:44
|
|
|
| |
#include <sys/types.h> | #include <sys/types.h> |
#include <sys/stat.h> | #include <sys/stat.h> |
|
#if defined(PEGASUS_OS_HPUX) |
#include <sys/pstat.h> | #include <sys/pstat.h> |
|
#endif |
#include <fcntl.h> | #include <fcntl.h> |
#include <unistd.h> | #include <unistd.h> |
| |
|
|
// | // |
// kill the process if it is still alive | // kill the process if it is still alive |
// | // |
|
#if defined(PEGASUS_OS_HPUX) |
struct pst_status pstru; | struct pst_status pstru; |
| |
if (pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid) != -1) | if (pstat_getproc(&pstru, sizeof(struct pst_status), (size_t)0, pid) != -1) |
{ | { |
kill(pid, SIGKILL); | kill(pid, SIGKILL); |
} | } |
|
#endif |
| |
// remove the file | // remove the file |
System::removeFile(fname); | System::removeFile(fname); |