summaryrefslogtreecommitdiffstats
path: root/src/global.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.go')
-rw-r--r--src/global.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global.go b/src/global.go
index 0439df6..c3001ab 100644
--- a/src/global.go
+++ b/src/global.go
@@ -9,6 +9,7 @@ type Event struct {
9 timestamp time.Time 9 timestamp time.Time
10 pid, ppid int 10 pid, ppid int
11 syscall int 11 syscall int
12 exit_code uint64
12 argc int 13 argc int
13 argv []string 14 argv []string
14 cwd string 15 cwd string
@@ -23,7 +24,6 @@ type process struct {
23 children []int 24 children []int
24} 25}
25 26
26var pids sync.Map // 古希腊掌管进程的神,int->*process
27var wg sync.WaitGroup // 掌管协程 27var wg sync.WaitGroup // 掌管协程
28var rawChan chan interface{} // 从接收到整理的管道 28var rawChan chan interface{} // 从接收到整理的管道
29var cookedChan chan Event // 整理好的信息的管道 29var cookedChan chan Event // 整理好的信息的管道