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

Method run

src/slave/container_loggers/logrotate.cpp:149–161  ·  view source on GitHub ↗

Prepares and starts the loop which reads from stdin, writes to the leading log file, and manages total log size.

Source from the content-addressed store, hash-verified

147 // Prepares and starts the loop which reads from stdin, writes to the
148 // leading log file, and manages total log size.
149 Future<Nothing> run()
150 {
151 // NOTE: This is a prerequisuite for `io::read`.
152 Try<Nothing> async = io::prepare_async(STDIN_FILENO);
153 if (async.isError()) {
154 return Failure("Failed to set async pipe: " + async.error());
155 }
156
157 // NOTE: This does not block.
158 loop();
159
160 return promise.future();
161 }
162
163 // Reads from stdin and writes to the leading log file.
164 void loop()

Callers

nothing calls this directly

Calls 6

FailureClass · 0.85
loopFunction · 0.85
errorMethod · 0.65
prepare_asyncFunction · 0.50
isErrorMethod · 0.45
futureMethod · 0.45

Tested by

no test coverage detected