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

Function cleanup

src/subprocess.cpp:257–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

resumeMethod · 0.85

Calls 6

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

Tested by 1