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

Method notify

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

Source from the content-addressed store, hash-verified

114
115
116void ReaperProcess::notify(pid_t pid, Result<int> status)
117{
118 foreach (const Owned<Promise<Option<int>>>& promise, promises.get(pid)) {
119 if (status.isError()) {
120 promise->fail(status.error());
121 } else if (status.isNone()) {
122 promise->set(Option<int>::none());
123 } else {
124 promise->set(Option<int>(status.get()));
125 }
126 }
127 promises.remove(pid);
128}
129
130
131const Duration ReaperProcess::interval()

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected