version 1.11, 2006/08/09 21:13:11
|
version 1.11.16.4, 2006/12/27 20:29:21
|
|
|
#define PROCSIZE sizeof(struct procsinfo) | #define PROCSIZE sizeof(struct procsinfo) |
} | } |
#endif | #endif |
|
#include <Pegasus/ExecutorClient/ExecutorClient.h> |
| |
PEGASUS_USING_PEGASUS; | PEGASUS_USING_PEGASUS; |
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
|
|
exit(graveError); | exit(graveError); |
} | } |
| |
|
|
setsid(); | setsid(); |
umask(S_IRWXG | S_IRWXO ); | umask(S_IRWXG | S_IRWXO ); |
| |
|
|
| |
// get the pid of the cimserver process | // get the pid of the cimserver process |
server_pid = getpid(); | server_pid = getpid(); |
|
|
|
// Ask the executor process to daemonize. |
|
ExecutorClient::daemonizeExecutor(); |
|
|
return(0); | return(0); |
} | } |
| |
|
|
if (aixcimsrvrunning(pid, getProcessName())!=-1) | if (aixcimsrvrunning(pid, getProcessName())!=-1) |
return true; | return true; |
#endif | #endif |
|
|
return false; | return false; |
} | } |
| |