Binsec.Subprocessval spawn : ?pdeathsig:int -> string array -> tspawn ~pdeathsig command spawns the specified command in a new process. The command is searched in the path.
When given, the signal pdeathsig will be delivered to the child process if the current thread dies (implemented only on Linux). The process must be closed via close.
val pid : t -> intpid t returns the process identifier.
val stdin : t -> out_channelstdin t returns the channel bound to the subprocess stdin.
val stdout : t -> in_channelstdout t returns the channel bound to the subprocess stdout.
val stderr : t -> in_channelstderr t returns the channel bound to the subprocess stderr.