fixed bug

This commit is contained in:
Pan Qiancheng 2025-04-08 10:20:46 +08:00
parent 8ae3dd720a
commit eb6316e8ec
11 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
debug: debug:
rm -rf $(BUILD_DIR)
$(MAKE) DEBUG=1 $(MAKE) DEBUG=1
rebuild: clean all rebuild: clean all

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -19,7 +19,7 @@ extern int shm_id;
// } // }
// Destructor, executed when the library is unloaded // Destructor, executed when the library is unloaded
__attribute__((destructor)) static void cleanup_shared_memory() { __attribute__((destructor)) void cleanup_shared_memory() {
DEBUG_LOG("execve_intercept library unloaded."); DEBUG_LOG("execve_intercept library unloaded.");
// Log output paths // Log output paths
DEBUG_LOG("Log file: %s", LOG_FILE); DEBUG_LOG("Log file: %s", LOG_FILE);

View File

@ -2,6 +2,6 @@
#define INIT_CLEANUP_H #define INIT_CLEANUP_H
// void initialize(); // void initialize();
__attribute__((destructor)) static void cleanup_shared_memory(); __attribute__((destructor)) void cleanup_shared_memory();
#endif // INIT_CLEANUP_H #endif // INIT_CLEANUP_H