From ec9f917101371baaae34ca10ae952392c2c2343d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 13 Dec 2016 22:41:35 -0800 Subject: More comments, and detection of fork-reentrancy. Much effort was spent trying to come to a fork-safe solution, but ultimately we gave up. --- src/core/socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/socket.c') diff --git a/src/core/socket.c b/src/core/socket.c index dffc8a2d..5b93454d 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -43,8 +43,8 @@ struct nng_socket { }; /* - * nni_socket_sendq and nni_socket_recvq are called by the protocol - * to obtain the upper read and write queues. + * nni_socket_sendq and nni_socket_recvq are called by the protocol to obtain + * the upper read and write queues. */ nni_msgqueue_t nng_socket_sendq(nng_socket_t s) @@ -112,8 +112,8 @@ nng_socket_sendmsg(nng_socket_t sock, nng_msg_t msg, int tmout) if (besteffort) { /* - * BestEffort mode -- if we cannot handle the message due - * to backpressure, we just throw it away, and don't complain. + * BestEffort mode -- if we cannot handle the message due to + * backpressure, we just throw it away, and don't complain. */ tmout = 0; } -- cgit v1.2.3-70-g09d2