aboutsummaryrefslogtreecommitdiffstats
path: root/src/godo.go
diff options
context:
space:
mode:
authorWe-unite <3205135446@qq.com>2024-08-01 16:52:46 +0800
committerWe-unite <3205135446@qq.com>2024-08-02 19:11:13 +0800
commitf29dff60ef36ef9903df4f767393bcba2ac3ce83 (patch)
treed2d05791c237428c98c4796d9bc965baa40208be /src/godo.go
parent3efeef969ebc344c993ce0fc46f557c7d8560525 (diff)
downloadgodo-f29dff60ef36ef9903df4f767393bcba2ac3ce83.tar.gz
godo-f29dff60ef36ef9903df4f767393bcba2ac3ce83.zip
Open is well, but we're back to original question.
It's the check(cooked Event) function that causes fileopen crushed, and now I'am sorry to say that i've forgot why i add this function, maybe to check ppid and pid in database in just one function but not the head of each function. However, the check in each function isn't deleted. I discover it by comparing source code with 5d244e3. In theory this would only result in the increase of delay. How does it affect on the fileopen and causes failure? No one knows. The same to kernel connector. If we still add delay while pid exits, the connector will say "Error recv: no enough buffer space", but if we delete the delay, all modules work well. What actually makes the delay in pid exit causes no enouth buffer of connector? How outra- geous it is! Now I've come back to the original question: when i start and use docker quickly(`start && exec && exit` in just one command), the file open/write/close is faithfully recorded; but if i use interactive shell and use vim to change file in docker, nothing happens. Why? Why? Why?
Diffstat (limited to 'src/godo.go')
-rw-r--r--src/godo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/godo.go b/src/godo.go
index c332c86..cbd9e0a 100644
--- a/src/godo.go
+++ b/src/godo.go
@@ -147,7 +147,7 @@ func checkProc(pCooked *Event) {
147 fileName := fmt.Sprintf("/proc/%d/cmdline", pCooked.pid) 147 fileName := fmt.Sprintf("/proc/%d/cmdline", pCooked.pid)
148 fd, err := os.Open(fileName) 148 fd, err := os.Open(fileName)
149 if err != nil { 149 if err != nil {
150 fmt.Printf("Err opening file %s: %v\n", fileName, err) 150 fmt.Printf("Err: %v\n", err)
151 return 151 return
152 } 152 }
153 153