diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-23 21:56:57 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-23 21:56:57 +0800 |
commit | e511d54dd054ead34f128da2f3b7452caccbcf22 (patch) | |
tree | 6bac3da8ba03484c97694482a1a19e5c3bcc2a71 /openbsc/src | |
parent | 6edf7b9a5180db37521a3a60f5f95ec2ec0e3ef1 (diff) |
nat: Allocate a named context to make dumping allocations possible
This is fixing the SIGUSR1 to really report the allocated
memory on stderr.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 52844276c..a6258dacc 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -819,6 +819,7 @@ static void signal_handler(int signal) int main(int argc, char** argv) { log_init(&log_info); + tall_bsc_ctx = talloc_named_const(NULL, 1, "nat"); stderr_target = log_target_create_stderr(); log_add_target(stderr_target); log_set_all_filter(stderr_target, 1); |