diff options
author | Kozlov Dmitry <dima@server> | 2011-05-30 11:24:27 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-05-30 11:24:27 +0400 |
commit | 276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa (patch) | |
tree | f50c4e781ba13c3ee59382a4466cfafa31ef464a /accel-pppd/extra/sigchld.c | |
parent | 01afc34e830f2adf94c191a3c4f2761888dae53b (diff) | |
download | accel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.tar.gz accel-ppp-276beb78cea777ff8d81d9f5a4cd107c5a3dc2aa.zip |
rewrited initialization procedure (fix gcc-4.6 builds)
Diffstat (limited to 'accel-pppd/extra/sigchld.c')
-rw-r--r-- | accel-pppd/extra/sigchld.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/extra/sigchld.c b/accel-pppd/extra/sigchld.c index 08bab93d..8f1a979e 100644 --- a/accel-pppd/extra/sigchld.c +++ b/accel-pppd/extra/sigchld.c @@ -109,8 +109,10 @@ void __export sigchld_unlock() pthread_mutex_unlock(&handlers_lock); } -static void __init init(void) +static void 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 |