kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ce012e7bd5dac16ca44921f2ad89bc51b1ff7d19
parent d371454dad11b6e9de53cb3747c1cf25b3bb6d9f
Author: Joris Vink <joris@coders.se>
Date:   Thu, 21 Mar 2019 10:09:24 +0100

set fd to -1 on close.

Diffstat:
src/python.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/python.c b/src/python.c @@ -1935,9 +1935,10 @@ pysocket_close(struct pysocket *sock, PyObject *args) sock->socket = NULL; } else if (sock->fd != -1) { (void)close(sock->fd); - sock->fd = -1; } + sock->fd = -1; + Py_RETURN_TRUE; }