aboutsummaryrefslogtreecommitdiff
path: root/src/tools/perf/pubdrop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/perf/pubdrop.c')
-rw-r--r--src/tools/perf/pubdrop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c
index af715a88..020bae0f 100644
--- a/src/tools/perf/pubdrop.c
+++ b/src/tools/perf/pubdrop.c
@@ -75,6 +75,9 @@ main(int argc, char **argv)
argc--;
argv++;
+ nng_init(NULL);
+ atexit(nng_fini);
+
// We calculate a delay factor to roughly delay 1 usec. We don't
// need this to be perfect, just reproducible on the same host.
unsigned long cnt = 1000000;