MCPcopy Create free account
hub / github.com/3rdparty/libprocess / manage

Method manage

include/process/windows/jobobject.hpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 virtual ~JobObjectManager() {}
42
43 void manage(
44 const pid_t pid,
45 const std::wstring& name,
46 const SharedHandle& handle)
47 {
48 jobs.emplace(pid, JobData{name, handle});
49
50 process::reap(pid)
51 .onAny(defer(self(), &Self::cleanup, lambda::_1, pid));
52 }
53
54protected:
55 void cleanup(Future<Option<int>> exit_code, const pid_t pid)

Callers

nothing calls this directly

Calls 2

reapFunction · 0.85
deferFunction · 0.85

Tested by

no test coverage detected