Commit 9f59311c authored by Ramon Nou's avatar Ramon Nou
Browse files

Refactor preload initialization and destruction functions for clarity

parent 4523c8f0
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -74,16 +74,11 @@ at_child_syscall();
void
at_parent_syscall();

void
at_fork();
void
at_child();
void
at_parent();

void
at_fork_syscall();
void
at_child_syscall();
void
at_parent_syscall();
#endif // IOINTERCEPT_PRELOAD_HPP
+0 −13
Original line number Diff line number Diff line
@@ -495,19 +495,6 @@ gkfs_end() {
    return 0;
}

void
at_fork_syscall() {
    destroy_preload();
}
void
at_parent_syscall() {
    init_preload();
}

void
at_child_syscall() {
    init_preload();

/**
 * @brief Automatically launch init/destroy
 * NOTES: this is not called, in the child of a fork