Changeset 252 for trunk/src/sh_hash.c


Ignore:
Timestamp:
Oct 12, 2009, 10:40:45 AM (15 years ago)
Author:
katerina
Message:

Add code to check for stale file records on close() and fclose(), fix sl_close() to handle open stream (ticket #163).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_hash.c

    r248 r252  
    786786static void sh_hash_getline_end (void)
    787787{
    788   fclose (sh_fin_fd);
     788  sl_fclose (FIL__, __LINE__, sh_fin_fd);
    789789  sh_fin_fd = NULL;
    790790  return;
     
    816816  if (sh_fin_fd != NULL)
    817817    {
    818       fclose (sh_fin_fd);
     818      sl_fclose (FIL__, __LINE__, sh_fin_fd);
    819819      sh_fin_fd = NULL;
    820820    }
     
    13071307  SH_FREE(buf);
    13081308  sl_close(fd);
    1309   fclose(fin_cp);
     1309  sl_fclose(FIL__, __LINE__, fin_cp); /* fin_cp = fdopen(dup(), "rb"); */
    13101310
    13111311  fd = fdTmp;
Note: See TracChangeset for help on using the changeset viewer.