MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / DBUGCloseFile

Function DBUGCloseFile

dbug/dbug.c:2143–2152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141 */
2142
2143static void DBUGCloseFile(CODE_STATE *cs, FILE *fp)
2144{
2145 if (fp != NULL && fp != stderr && fp != stdout && fclose(fp) == EOF)
2146 {
2147 pthread_mutex_lock(&THR_LOCK_dbug);
2148 (void) fprintf(cs->stack->out_file, ERR_CLOSE, cs->process);
2149 perror("");
2150 DbugFlush(cs);
2151 }
2152}
2153
2154
2155/*

Callers 2

DbugParseFunction · 0.85
FreeStateFunction · 0.85

Calls 2

perrorFunction · 0.85
DbugFlushFunction · 0.85

Tested by

no test coverage detected