Changeset 3892e4250eb7ea466506186f41345e8858729835
- Timestamp:
- 07/30/10 20:41:35
(3 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
| rdb7317d |
r3892e42 |
|
| 124 | 124 | posix_logio_open(noit_log_stream_t ls) { |
|---|
| 125 | 125 | int fd; |
|---|
| | 126 | struct stat sb; |
|---|
| 126 | 127 | ls->mode = 0664; |
|---|
| 127 | 128 | fd = open(ls->path, O_CREAT|O_WRONLY|O_APPEND, ls->mode); |
|---|
| … | … | |
| 131 | 132 | return -1; |
|---|
| 132 | 133 | } |
|---|
| | 134 | if(fstat(fd, &sb) == 0) ls->written = (size_t)sb.st_size; |
|---|
| 133 | 135 | ls->op_ctx = (void *)(vpsized_int)fd; |
|---|
| 134 | 136 | return 0; |
|---|