changeset 38065 | 025c784d9333 |
parent 37465 | 1d5551f466ee |
child 38195 | d317aafcc87c |
38062:430e0a96ef1f | 38065:025c784d9333 |
---|---|
250 return false; |
250 return false; |
251 } |
251 } |
252 |
252 |
253 if (_file_count == 0 && is_regular_file(_file_name)) { |
253 if (_file_count == 0 && is_regular_file(_file_name)) { |
254 log_trace(logging)("Truncating log file"); |
254 log_trace(logging)("Truncating log file"); |
255 os::ftruncate(os::fileno(_stream), 0); |
255 os::ftruncate(os::get_fileno(_stream), 0); |
256 } |
256 } |
257 |
257 |
258 return true; |
258 return true; |
259 } |
259 } |
260 |
260 |