MCPcopy Create free account
hub / github.com/F-Stack/f-stack / close

Function close

app/redis-6.2.6/src/anet_ff.c:294–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294int
295close(int sockfd)
296{
297 if (unlikely(inited == 0)) {
298 INIT_FUNCTION(close);
299 return real_close(sockfd);
300 }
301
302 if (ff_fdisused(sockfd)) {
303 return ff_close(sockfd);
304 } else {
305 return real_close(sockfd);
306 }
307}
308
309ssize_t write(int sockfd, const void *buf, size_t count)
310{

Callers 15

getRDBFunction · 0.70
sentinelFlushConfigFunction · 0.70
aeApiFreeFunction · 0.70
bg_unlinkFunction · 0.70
sendBulkToSlaveFunction · 0.70
rdbPipeReadHandlerFunction · 0.70
readSyncBulkPayloadFunction · 0.70
syncWithMasterFunction · 0.70
serverLogFromHandlerFunction · 0.70
restartServerFunction · 0.70

Calls 2

ff_fdisusedFunction · 0.85
ff_closeFunction · 0.85

Tested by 15

test_pidfile_relativeFunction · 0.40
test_flopen_createFunction · 0.40
test_flopen_openFunction · 0.40
test_flopen_lock_selfFunction · 0.40
test_flopen_lock_otherFunction · 0.40
test_flopen_lock_childFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40