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

Function cleanup

3rdparty/libprocess/src/subprocess.cpp:258–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256namespace internal {
257
258static void cleanup(
259 const Future<Option<int>>& result,
260 Promise<Option<int>>* promise,
261 const Subprocess& subprocess)
262{
263 CHECK(!result.isPending());
264 CHECK(!result.isDiscarded());
265
266 if (result.isFailed()) {
267 promise->fail(result.failure());
268 } else {
269 promise->set(result.get());
270 }
271
272 delete promise;
273}
274
275
276static void close(std::initializer_list<int_fd> fds)

Callers 2

resumeMethod · 0.70

Calls 7

isDiscardedMethod · 0.80
isFailedMethod · 0.80
failureMethod · 0.80
isPendingMethod · 0.45
failMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by 1