diff options
author | Martin Mares <mj@ucw.cz> | 2004-05-31 21:48:19 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2004-05-31 21:48:19 +0000 |
commit | 38a608c55af7654f23c9a16129ab6211aac3b7ab (patch) | |
tree | ebe43e728b3e7fcbb7679ae4d52ba5deab9fdeae /sysdep/unix/main.c | |
parent | 206f59dfa8e59e32f4aef12dacb0804581b9f602 (diff) |
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.
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r-- | sysdep/unix/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index 75852c18..2479cd6a 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 |