Module Connection.Expert

This module exists for testing purposes only. For example, clients can test whether their command-rpc server cleans up after itself properly when a ctrl-c at the command line kills a whole process group, server included.

val kill : t -> Async.Signal.t -> unit

Send a signal to the command-rpc executable.

Note that this has a (very small) race condition where we can send a signal to a reaped pid if the process dies at exactly the right time.

val wait : t -> Async.Unix.Exit_or_signal.t Async.Deferred.t

Wait for termination of the command-rpc executable.