diff options
author | We-unite <3205135446@qq.com> | 2024-09-02 16:45:07 +0800 |
---|---|---|
committer | We-unite <3205135446@qq.com> | 2024-09-02 16:45:07 +0800 |
commit | 08207d77be79afc6f75d1611726b92bdf622717f (patch) | |
tree | 918991217807ff18025b998407b87bcd31d4ddc3 /listener/godo.go | |
parent | f9f8f35ccd8b505a827d40f95c52ed039512b79d (diff) | |
download | godo-master.tar.gz godo-master.zip |
In the listener, I change the order coroutines are started to avoid
'send on a closed channel'. Besides, the method to get syscall names
and numbers are not so universial, so let's go back to check unistd.h.
In the filter, the output is set to be written to ./log dir. Pid tree
are shown in logs/tree.log, and detail info in pids.log, while file info
in the logs/files.log. tree.log shows a tree just like `tree` command,
the other two files are written in json.
What's more, the flags while opening files are also checked ans showed
in files.log.
Diffstat (limited to 'listener/godo.go')
-rw-r--r-- | listener/godo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/listener/godo.go b/listener/godo.go index 0e1dc73..4f09b67 100644 --- a/listener/godo.go +++ b/listener/godo.go | |||
@@ -108,11 +108,11 @@ func coroutine(client *libaudit.AuditClient) error { | |||
108 | wg.Add(1) | 108 | wg.Add(1) |
109 | go deal() | 109 | go deal() |
110 | wg.Add(1) | 110 | wg.Add(1) |
111 | go procWatch() | ||
112 | wg.Add(1) | ||
113 | go receive(client) | 111 | go receive(client) |
114 | wg.Add(1) | 112 | wg.Add(1) |
115 | go orgnaze() | 113 | go orgnaze() |
114 | wg.Add(1) | ||
115 | go procWatch() | ||
116 | 116 | ||
117 | wg.Wait() | 117 | wg.Wait() |
118 | time.Sleep(2 * time.Second) | 118 | time.Sleep(2 * time.Second) |