MCPcopy Create free account
hub / github.com/apache/mesos / reap

Method reap

3rdparty/libprocess/src/reap.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68
69Future<Option<int>> ReaperProcess::reap(pid_t pid)
70{
71 // Check to see if this pid exists.
72 if (os::exists(pid)) {
73 Owned<Promise<Option<int>>> promise(new Promise<Option<int>>());
74 promises.put(pid, promise);
75 return promise->future();
76 } else {
77 return None();
78 }
79}
80
81
82void ReaperProcess::initialize()

Callers

nothing calls this directly

Calls 4

NoneClass · 0.85
existsFunction · 0.50
putMethod · 0.45
futureMethod · 0.45

Tested by

no test coverage detected