Changeset 252 for trunk/src/sh_utmp.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_utmp.c

    r170 r252  
    283283  if (sh_utmpfile != NULL)
    284284    {
    285       (void) fclose (sh_utmpfile);
     285      (void) sl_fclose (FIL__, __LINE__, sh_utmpfile);
    286286      sh_utmpfile = NULL;
    287287    }
     
    341341  SL_ENTER(_("sh_utmp_endutent"));
    342342  if (NULL != sh_utmpfile)
    343     (void) fclose(sh_utmpfile);
     343    (void) sl_fclose(FIL__, __LINE__, sh_utmpfile);
    344344  sh_utmpfile = NULL;
    345345  SL_RET0(_("sh_utmp_endutent"));
Note: See TracChangeset for help on using the changeset viewer.