Changeset 3892e4250eb7ea466506186f41345e8858729835

Show
Ignore:
Timestamp:
07/30/10 20:41:35 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1280522495 +0000
git-parent:

[db7317dba191f1eb1c0e46a8c023bfc5a725b9c2]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1280522495 +0000
Message:

set the size on open, how'd I miss this? refs #300

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_log.c

    rdb7317d r3892e42  
    124124posix_logio_open(noit_log_stream_t ls) { 
    125125  int fd; 
     126  struct stat sb; 
    126127  ls->mode = 0664; 
    127128  fd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND, ls->mode); 
     
    131132    return -1; 
    132133  } 
     134  if(fstat(fd, &sb) == 0) ls->written = (size_t)sb.st_size; 
    133135  ls->op_ctx = (void *)(vpsized_int)fd; 
    134136  return 0;