From 7cf8e470471d30fc821a8be350dcb97dc64e5add Mon Sep 17 00:00:00 2001 From: We-unite <3205135446@qq.com> Date: Fri, 19 Jul 2024 17:02:11 +0800 Subject: Depart the whole program into several files. Put all the src code in only one file is to ugly, so devide it! and mv them into src dir to keep the whole repo clear. --- src/global.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/global.go (limited to 'src/global.go') diff --git a/src/global.go b/src/global.go new file mode 100644 index 0000000..4e08866 --- /dev/null +++ b/src/global.go @@ -0,0 +1,10 @@ +package main + +import "sync" + +var pids sync.Map // 古希腊掌管进程的神,int->*process +var wg sync.WaitGroup // 掌管协程 +var rawChan chan interface{} // 从接收到整理的管道 +var cookedChan chan Event // 整理好的信息的管道 +var syscallTable [500]string //记录一下系统调用 +var containerdPid int -- cgit v1.2.3-70-g09d2