summaryrefslogtreecommitdiff
path: root/forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'forward.c')
-rw-r--r--forward.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/forward.c b/forward.c
index 771b3ca..a2139a2 100644
--- a/forward.c
+++ b/forward.c
@@ -147,6 +147,7 @@ struct atfork {
void (*prepare) (void);
void (*parent) (void);
void (*child) (void);
+ void *dso_handle;
struct atfork *prev;
struct atfork *next;
};
@@ -219,7 +220,8 @@ int
__register_atfork (
void (*prepare) (void),
void (*parent) (void),
- void (*child) (void))
+ void (*child) (void),
+ void *dso_handle)
{
struct atfork *new = malloc (sizeof (*new));
if (!new)
@@ -228,6 +230,7 @@ __register_atfork (
new->prepare = prepare;
new->parent = parent;
new->child = child;
+ new->dso_handle = dso_handle;
new->prev = NULL;
__mutex_lock (&atfork_lock);