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

Function ProcessKillImpl

lib/base/process.cpp:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static Value ProcessKillImpl(const Dictionary::Ptr& request)
227{
228 pid_t pid = request->Get("pid");
229 int signum = request->Get("signum");
230
231 errno = 0;
232 kill(pid, signum);
233 int error = errno;
234
235 Dictionary::Ptr response = new Dictionary({
236 { "errno", error }
237 });
238
239 return response;
240}
241
242static Value ProcessWaitPIDImpl(const Dictionary::Ptr& request)
243{

Callers 1

ProcessHandlerFunction · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected