From a62ed181db9ba7d85d057365d5331dd35026247f Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 7 Oct 2022 04:01:56 +0200 Subject: conf, tap: Add option to quit once the client closes the connection This is practical to avoid explicit lifecycle management in users, e.g. libvirtd, and is trivial to implement. Signed-off-by: Stefano Brivio Reviewed-by: David Gibson --- passt.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'passt.1') diff --git a/passt.1 b/passt.1 index 667c1bc..555a50c 100644 --- a/passt.1 +++ b/passt.1 @@ -302,6 +302,11 @@ Path for UNIX domain socket used by \fBqemu\fR(1) or \fBqrap\fR(1) to connect to Default is to probe a free socket, not accepting connections, starting from \fI/tmp/passt_1.socket\fR to \fI/tmp/passt_64.socket\fR. +.TP +.BR \-1 ", " \-\-one-off +Quit after handling a single client connection, that is, once the client closes +the socket, or once we get a socket error. + .TP .BR \-t ", " \-\-tcp-ports " " \fIspec Configure TCP port forwarding to guest. \fIspec\fR can be one of: -- cgit v1.2.3