From f29dff60ef36ef9903df4f767393bcba2ac3ce83 Mon Sep 17 00:00:00 2001 From: We-unite <3205135446@qq.com> Date: Thu, 1 Aug 2024 16:52:46 +0800 Subject: 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? --- src/godo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/godo.go') 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) { fileName := fmt.Sprintf("/proc/%d/cmdline", pCooked.pid) fd, err := os.Open(fileName) if err != nil { - fmt.Printf("Err opening file %s: %v\n", fileName, err) + fmt.Printf("Err: %v\n", err) return } -- cgit v1.2.3-70-g09d2