Ignore:
Timestamp:
Feb 11, 2000, 12:37:52 AM (26 years ago)
Author:
bird
Message:

Removes empty signals.log files upon exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/database/StateUpd.cpp

    r2742 r2748  
    1 /* $Id: StateUpd.cpp,v 1.6 2000-02-10 22:10:38 bird Exp $
     1/* $Id: StateUpd.cpp,v 1.7 2000-02-10 23:37:52 bird Exp $
    22 *
    33 * StateUpd - Scans source files for API functions and imports data on them.
     
    341341        fclose(phLog);
    342342    if (phSignal != stdout && phSignal != NULL)
    343         fclose(phSignal);
     343    {
     344        if (ftell(phSignal) > 0)
     345            fclose(phSignal);
     346        else
     347        {
     348            fclose(phSignal);
     349            unlink("Signals.log");
     350        }
     351    }
    344352}
    345353
Note: See TracChangeset for help on using the changeset viewer.