Skip to content

Commit

Permalink
Reopen for append instead of truncating
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorNicollet committed Nov 24, 2012
1 parent 54843d9 commit 582f14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ohmTrackLogs/ohmTrackLogs.ml
Expand Up @@ -41,7 +41,7 @@ let get_output_channel time =
(* Grab output channel if it is present, otherwise create it. *)
match !output_channel with
| Some (chan,_) -> chan
| None -> let chan = open_out file in
| None -> let chan = open_out_gen [Open_wronly;Open_creat;Open_append;Open_binary] 0o644 file in
output_channel := Some (chan,file) ;
chan

Expand Down

0 comments on commit 582f14f

Please sign in to comment.