]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
CA-33440: remove some unused arguments from execute_command_get_output
authorDavid Scott <dave.scott@eu.citrix.com>
Mon, 21 Dec 2009 15:36:51 +0000 (15:36 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Mon, 21 Dec 2009 15:36:51 +0000 (15:36 +0000)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
stdext/forkhelpers.ml
stdext/forkhelpers.mli

index e5e8d32e9449f54a23eeb8bae85690d6526017b7..5b259c24e7339b8e925bebff7e7b9ad90ab725f3 100644 (file)
@@ -152,7 +152,7 @@ let safe_close_and_exec ?env stdin stdout stderr (fds: (string * Unix.file_descr
     close_fds
 
 
-let execute_command_get_output ?(cb_set=(fun _ -> ())) ?(cb_clear=(fun () -> ())) cmd args =
+let execute_command_get_output cmd args =
   match with_logfile_fd "execute_command_get_out" (fun out_fd ->
     with_logfile_fd "execute_command_get_err" (fun err_fd ->
       let (sock,pid) = safe_close_and_exec None (Some out_fd) (Some err_fd) [] cmd args in
index 2d9d2f12de518f334e6ab15460a30ecccb4cf45d..590db8cbb9c68ed0d5daeda2df5ad4084cee4432 100644 (file)
@@ -17,7 +17,7 @@
 (** [execute_command_get_output cmd args] runs [cmd args] and returns (stdout, stderr)
        on success (exit 0). On failure this raises [Spawn_internal_error(stderr, stdout, Unix.process_status)]
 *)
-val execute_command_get_output : ?cb_set:(int -> unit) -> ?cb_clear:(unit -> unit) -> string -> string list -> string * string
+val execute_command_get_output : string -> string list -> string * string
 
 (** Thrown by [execute_command_get_output] if the subprocess exits with a non-zero exit code *)
 exception Spawn_internal_error of string * string * Unix.process_status