From b92672e20420683e73bfc017956ac6ef2b6b793b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 22 Dec 2016 01:05:43 -0800 Subject: Logic for socket shutdown, cleanup, and draining figured out. There's work to do still, but I've left clear indications of the design in comments. Some ugly mysteries are now solved. --- src/core/panic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/core/panic.c') diff --git a/src/core/panic.c b/src/core/panic.c index 65eb0747..d0d6078d 100644 --- a/src/core/panic.c +++ b/src/core/panic.c @@ -18,9 +18,7 @@ #include "core/nng_impl.h" -// // Panic handling. -// static void nni_show_backtrace(void) { @@ -44,13 +42,11 @@ nni_show_backtrace(void) } -// // nni_panic shows a panic message, a possible stack bracktrace, then aborts // the process/program. This should only be called when a condition arises // that should not be possible, e.g. a programming assertion failure. It should // not be called in situations such as ENOMEM, as nni_panic is fairly rude // to any application it may be called from within. -// void nni_panic(const char *fmt, ...) { @@ -75,6 +71,6 @@ nni_panic(const char *fmt, ...) void nni_println(const char *msg) { - /* TODO: support redirection of this later. */ + // TODO: support redirection of this later. nni_plat_println(msg); } -- cgit v1.2.3-70-g09d2