diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
---|---|---|
committer | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
commit | d19e58b13ce7716491d7fe22a91a52cf092b42a7 (patch) | |
tree | e16a267c7fa496ddc102844479be76ce71fc0ab9 /openbsc/src/signal.c | |
parent | efc92311e22e67a210429a15c29b396b0561317f (diff) |
move talloc context creation out of on_dso / constructors
the various constructors get called in a non-obvious, linker determined
order, which makes certain objects disappear from the talloc report.
This change moves the talloc context creation into a new talloc_ctx.c file
Diffstat (limited to 'openbsc/src/signal.c')
-rw-r--r-- | openbsc/src/signal.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/openbsc/src/signal.c b/openbsc/src/signal.c index bf5671ee1..e04cadf73 100644 --- a/openbsc/src/signal.c +++ b/openbsc/src/signal.c @@ -24,7 +24,7 @@ #include <string.h> -static void *tall_sigh_ctx; +void *tall_sigh_ctx; static LLIST_HEAD(signal_handler_list); struct signal_handler { @@ -81,8 +81,3 @@ void dispatch_signal(unsigned int subsys, unsigned int signal, void *signal_data (*handler->cbfn)(subsys, signal, handler->data, signal_data); } } - -static __attribute__((constructor)) void on_dso_load_signal(void) -{ - tall_sigh_ctx = talloc_named_const(NULL, 1, "signal_handler"); -} |