fixed bug
This commit is contained in:
parent
8ae3dd720a
commit
eb6316e8ec
1
Makefile
1
Makefile
|
|
@ -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
|
||||||
BIN
build/config.o
BIN
build/config.o
Binary file not shown.
BIN
build/debug.o
BIN
build/debug.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/logging.o
BIN
build/logging.o
Binary file not shown.
BIN
build/rules.o
BIN
build/rules.o
Binary file not shown.
BIN
build/utils.o
BIN
build/utils.o
Binary file not shown.
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue