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

Method finalize

src/linux/perf.cpp:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void finalize() override
114 {
115 // Kill the perf process (if it's still running) by sending
116 // SIGTERM to the signal handler which will then SIGKILL the
117 // perf process group created by the supervisor process.
118 if (perf.isSome() && perf->status().isPending()) {
119 kill(perf->pid(), SIGTERM);
120 }
121
122 promise.discard();
123 }
124
125private:
126 void execute()

Callers

nothing calls this directly

Calls 6

killFunction · 0.70
isSomeMethod · 0.45
isPendingMethod · 0.45
statusMethod · 0.45
pidMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected