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

Function close

src/linux/ns.cpp:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257 typename = typename std::enable_if<
258 std::is_same<typename Iterable::value_type, int>::value>::type>
259static void close(const Iterable& fds)
260{
261 int errsav = errno;
262
263 foreach (int fd, fds) {
264 ::close(fd); // Need to call the async-signal safe version.
265 }
266
267 errno = errsav;
268}
269
270
271Try<pid_t> clone(

Callers 15

eventfdFunction · 0.70
registerNotifierFunction · 0.70
unregisterNotifierFunction · 0.70
cloneSealedFileFunction · 0.70
setnsFunction · 0.70
foreachFunction · 0.70
cloneFunction · 0.70
_readMethod · 0.50
testTCPConnectFunction · 0.50
~StatusUpdateStreamMethod · 0.50
CreateMasterFlagsMethod · 0.50
CreateSlaveFlagsMethod · 0.50

Calls

no outgoing calls

Tested by 15

CreateMasterFlagsMethod · 0.40
CreateSlaveFlagsMethod · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
foreachFunction · 0.40
mkfileMethod · 0.40
mkloopMethod · 0.40
doIncreasePageCacheFunction · 0.40
TEST_FFunction · 0.40
TEST_PFunction · 0.40
TEST_FFunction · 0.40