MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ProcessWaitPIDImpl

Function ProcessWaitPIDImpl

lib/base/process.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static Value ProcessWaitPIDImpl(const Dictionary::Ptr& request)
243{
244 pid_t pid = request->Get("pid");
245
246 int status;
247 int rc = waitpid(pid, &status, 0);
248
249 Dictionary::Ptr response = new Dictionary({
250 { "status", status },
251 { "rc", rc }
252 });
253
254 return response;
255}
256
257static void ProcessHandler()
258{

Callers 1

ProcessHandlerFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected