From c9fffa535275ca8b3d4afedf72cb503f909418e8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Jun 2017 13:25:15 -0700 Subject: Note that we have work to do to properly clean up. TBD. --- src/core/init.c | 2 ++ src/nng_compat.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/init.c b/src/core/init.c index c2fe3aff..0b65013a 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -64,6 +64,8 @@ nni_init(void) void nni_fini(void) { + // XXX: We should make sure that underlying sockets and + // file descriptors are closed. Details TBD. nni_tran_sys_fini(); nni_ep_sys_fini(); nni_sock_sys_fini(); diff --git a/src/nng_compat.c b/src/nng_compat.c index ee52a074..41995dd9 100644 --- a/src/nng_compat.c +++ b/src/nng_compat.c @@ -741,7 +741,8 @@ nn_device(int s1, int s2) } -// You should not use this function if you can help it. +// nn_term is suitable only for shutting down the entire library, +// and is not thread-safe with other functions. void nn_term(void) { -- cgit v1.2.3-70-g09d2