IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2010, 1:32:32 PM (16 years ago)
Author:
Paul Price
Message:

Seek to end when opening message (log) file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psLogMsg.c

    r23486 r28404  
    2828#include <stdarg.h>
    2929#include <time.h>
     30#include <sys/types.h>
    3031#include <unistd.h>
    3132#include <fcntl.h>
     
    200201        return -1;
    201202    }
     203
     204    if (lseek(fileD, 0, SEEK_END) == -1) {
     205        psError(PS_ERR_IO, true, "Could not seek to end of file %s", dest);
     206        return -1;
     207    }
     208
    202209    return fileD;
    203210}
Note: See TracChangeset for help on using the changeset viewer.