From 54a19002df18d2f19fc455c9b1ef9f88b96b7bd1 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 14 Oct 2021 12:17:47 +0200 Subject: conf: Add -P, --pid, to specify a file where own PID is written to Signed-off-by: Stefano Brivio --- passt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'passt.h') diff --git a/passt.h b/passt.h index e2bfe9d..9e33436 100644 --- a/passt.h +++ b/passt.h @@ -91,6 +91,7 @@ enum passt_modes { * @stderr: Force logging to stderr * @sock_path: Path for UNIX domain socket * @pcap: Path for packet capture file + * @pid_file: Path to PID file, empty string if not configured * @pasta_netns_fd: File descriptor for network namespace in pasta mode * @pasta_userns_fd: File descriptor for user namespace in pasta mode * @netns_only: In pasta mode, don't join or create a user namespace @@ -142,6 +143,7 @@ struct ctx { int stderr; char sock_path[UNIX_PATH_MAX]; char pcap[PATH_MAX]; + char pid_file[PATH_MAX]; int pasta_netns_fd; int pasta_userns_fd; -- cgit v1.2.3