| 2141 | */ |
| 2142 | |
| 2143 | static 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 | /* |