git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checking in daemonization, writing to a logfile, and saving the pid
[vsys.git]
/
conffile.ml
diff --git
a/conffile.ml
b/conffile.ml
index
d7b8715
..
21175e9
100644
(file)
--- a/
conffile.ml
+++ b/
conffile.ml
@@
-1,12
+1,12
@@
open Printf
open Printf
+open Globals
open Scanf
let split_conf_line s =
sscanf s "%s %s" (fun s1 s2->(s1,s2))
let read_frontends f =
open Scanf
let split_conf_line s =
sscanf s "%s %s" (fun s1 s2->(s1,s2))
let read_frontends f =
- let f_file = try open_in f with e -> printf "Could not open config
- file\n";flush Pervasives.stdout;raise e
+ let f_file = try open_in f with e -> fprintf logfd "Could not open config file\n";flush logfd;raise e
in
let rec read_conf_file cur_list =
let next_line = try Some(input_line f_file) with _ -> None in
in
let rec read_conf_file cur_list =
let next_line = try Some(input_line f_file) with _ -> None in