Skip to content

Commit

Permalink
Merge pull request #5560 from freddy77/underscore_t
Browse files Browse the repository at this point in the history
  • Loading branch information
psafont authored Apr 12, 2024
2 parents 27f5adc + e505d89 commit 9638038
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ocaml/forkexecd/lib/fe.ml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(* Disable "Warning 39: unused rec flag." caused by rpc *)
[@@@warning "-39"]

type syslog_stdout_t = {enabled: bool; key: string option} [@@deriving rpc]
type syslog_stdout = {enabled: bool; key: string option} [@@deriving rpc]

type setup_cmd = {
cmdargs: string list
; env: string list
; id_to_fd_map: (string * int option) list
; syslog_stdout: syslog_stdout_t
; syslog_stdout: syslog_stdout
; redirect_stderr_to_stdout: bool
}
[@@deriving rpc]
Expand Down
2 changes: 1 addition & 1 deletion ocaml/forkexecd/lib/forkhelpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ let with_logfile_fd ?(delete = true) prefix f =

exception Spawn_internal_error of string * string * Unix.process_status

type syslog_stdout_t =
type syslog_stdout =
| NoSyslogging
| Syslog_DefaultKey
| Syslog_WithKey of string
Expand Down
8 changes: 4 additions & 4 deletions ocaml/forkexecd/lib/forkhelpers.mli
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

(** {2 High-level interface } *)

type syslog_stdout_t =
type syslog_stdout =
| NoSyslogging
| Syslog_DefaultKey
| Syslog_WithKey of string
Expand All @@ -45,7 +45,7 @@ val default_path_env_pair : string array

val execute_command_get_output :
?env:string array
-> ?syslog_stdout:syslog_stdout_t
-> ?syslog_stdout:syslog_stdout
-> ?redirect_stderr_to_stdout:bool
-> ?timeout:float
-> string
Expand All @@ -57,7 +57,7 @@ val execute_command_get_output :

val execute_command_get_output_send_stdin :
?env:string array
-> ?syslog_stdout:syslog_stdout_t
-> ?syslog_stdout:syslog_stdout
-> ?redirect_stderr_to_stdout:bool
-> ?timeout:float
-> string
Expand Down Expand Up @@ -97,7 +97,7 @@ val safe_close_and_exec :
-> Unix.file_descr option
-> Unix.file_descr option
-> (string * Unix.file_descr) list
-> ?syslog_stdout:syslog_stdout_t
-> ?syslog_stdout:syslog_stdout
-> ?redirect_stderr_to_stdout:bool
-> string
-> string list
Expand Down
4 changes: 2 additions & 2 deletions ocaml/forkexecd/src/child.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ let debug (fmt : ('a, unit, string, unit) format4) =

exception Cancelled

type syslog_stdout_t = {enabled: bool; key: string option}
type syslog_stdout = {enabled: bool; key: string option}

type state_t = {
cmdargs: string list
; env: string list
; id_to_fd_map: (string * int option) list
; syslog_stdout: syslog_stdout_t
; syslog_stdout: syslog_stdout
; redirect_stderr_to_stdout: bool
; ids_received: (string * Unix.file_descr) list
; fd_sock2: Unix.file_descr option
Expand Down

0 comments on commit 9638038

Please sign in to comment.