From 38a608c55af7654f23c9a16129ab6211aac3b7ab Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 31 May 2004 21:48:19 +0000 Subject: Rewritten the I/O loop. All socket operations are now safe, meaning that you can delete the socket from anywhere in the hooks and nothing should break. Also, the receive/transmit buffers are now regular xmalloc()'ed buffers, not separate resources which would need shuffling around between pools. sk_close() is gone, use rfree() instead. --- sysdep/unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix/main.c') diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 75852c1..2479cd6 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -249,7 +249,7 @@ cli_err(sock *s, int err) log(L_INFO "CLI connection closed"); } cli_free(s->data); - sk_close(s); + rfree(s); } static int -- cgit v1.2.3