Skip to content

Commit 6b8db67

Browse files
committed
maintenance: use stdext without opening modules
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent 20dc6c0 commit 6b8db67

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/fecomms.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open Xapi_stdext_unix
1+
module Unixext = Xapi_stdext_unix.Unixext
22
open Fe
33

44
let open_unix_domain_sock () =

lib/forkhelpers.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
let default_path = [ "/sbin"; "/usr/sbin"; "/bin"; "/usr/bin" ]
2525

26-
open Xapi_stdext_pervasives.Pervasiveext
26+
let finally = Xapi_stdext_pervasives.Pervasiveext.finally
2727

2828
type pidty = (Unix.file_descr * int) (* The forking executioner has been used, therefore we need to tell *it* to waitpid *)
2929

src/child.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ let log_failure args child_pid reason =
9898
Fe_debug.error "%d (%s) %s" child_pid cmdline' reason
9999

100100
let report_child_exit comms_sock args child_pid status =
101-
let open Xapi_stdext_unix in
101+
let module Unixext = Xapi_stdext_unix.Unixext in
102102
let pr = match status with
103103
| Unix.WEXITED n ->
104104
(* Unfortunately logging this was causing too much spam *)

0 commit comments

Comments
 (0)