summaryrefslogtreecommitdiff
path: root/test/nptl/libatfork.c
blob: f4ddca057d77b455964440a8c7e66bcbd2326a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <pthread.h>

static void atfork_prepare(void)
{
    /*  nothing to do  */
}

static void atfork_parent(void)
{
    /*  nothing to do  */
}

static void atfork_child(void)
{
    /*  nothing to do  */
}

static __attribute__((constructor)) void init(void)
{
    pthread_atfork(atfork_prepare, atfork_parent, atfork_child);
}

static __attribute__((destructor)) void done(void)
{
    /*  nothing to do  */
}