version 1.11, 2006/08/09 21:13:11
|
version 1.11.16.1, 2006/12/27 00:21:54
|
|
|
} | } |
#endif | #endif |
| |
|
#ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION |
|
# include <ExecutorClient/ExecutorClient.h> |
|
#endif |
|
|
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(); |
|
|
|
#ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION |
|
|
|
// Ask the executor process to daemonize. |
|
|
|
ExecutorClient::daemonizeExecutor(); |
|
|
|
#endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ |
|
|
return(0); | return(0); |
} | } |
| |