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

Function foreach

src/linux/ns.cpp:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 Try<std::list<string>> entries = os::ls("/proc/self/ns");
110 if (entries.isSome()) {
111 foreach (const string& entry, entries.get()) {
112 // Introduced in Linux 4.12, pid_for_children is a handle for the PID
113 // namespace of child processes created by the current process.
114 if (entry != "pid_for_children") {
115 result.insert(entry);
116 }
117 }
118 }
119
120 return result;

Callers

nothing calls this directly

Calls 5

nstypeFunction · 0.85
insertMethod · 0.80
closeFunction · 0.70
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected