version 1.9, 2007/07/24 19:42:03
|
version 1.10, 2007/07/25 19:43:48
|
|
|
virtual int reapProviderAgent( | virtual int reapProviderAgent( |
int pid) | int pid) |
{ | { |
AutoMutex autoMutex(_mutex); |
// The Executor process automatically cleans up all its child |
|
// processes, so it does not need to explicitly harvest the |
// Send request header: |
// exit status of the cimprovagt processes it starts. |
|
|
ExecutorRequestHeader header; |
|
header.code = EXECUTOR_REAP_PROVIDER_AGENT_MESSAGE; |
|
|
|
if (SendBlock(_sock, &header, sizeof(header)) != sizeof(header)) |
|
return -1; |
|
|
|
// Send request body: |
|
|
|
ExecutorReapProviderAgentRequest request; |
|
memset(&request, 0, sizeof(request)); |
|
request.pid = pid; |
|
|
|
if (SendBlock(_sock, &request, sizeof(request)) != sizeof(request)) |
|
return -1; |
|
|
|
// Receive the response |
|
| |
ExecutorReapProviderAgentResponse response; |
return 0; |
|
|
if (RecvBlock(_sock, &response, sizeof(response)) != sizeof(response)) |
|
return -1; |
|
|
|
return response.status; |
|
} | } |
| |
virtual int authenticatePassword( | virtual int authenticatePassword( |