summaryrefslogtreecommitdiff
path: root/accel-pppd/extra/sigchld.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/extra/sigchld.c')
-rw-r--r--accel-pppd/extra/sigchld.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/extra/sigchld.c b/accel-pppd/extra/sigchld.c
index 8f1a979e..d6b0df5f 100644
--- a/accel-pppd/extra/sigchld.c
+++ b/accel-pppd/extra/sigchld.c
@@ -109,10 +109,9 @@ void __export sigchld_unlock()
pthread_mutex_unlock(&handlers_lock);
}
-static void init(void)
+static void __init init(void)
{
if (pthread_create(&sigchld_thr, NULL, sigchld_thread, NULL))
log_emerg("sigchld: pthread_create: %s\n", strerror(errno));
}
-DEFINE_INIT(100, init); \ No newline at end of file