]> Kevux Git Server - fll/commit
Bugfix: Problems exposed by unit tests.
authorKevin Day <thekevinday@gmail.com>
Tue, 24 May 2022 04:30:52 +0000 (23:30 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 24 May 2022 04:30:52 +0000 (23:30 -0500)
commit27a78044471e2bdfdba3219baf629033f83eb584
tree3b4022b0ab4a4bd3de946fa7c239318400350030
parentd407bfc7512cfd65d2fb110d48a2ff71e1168547
Bugfix: Problems exposed by unit tests.

Only call strncpy() if socket->name is defined.

Only set socket->id to -1 for f_socket_close_fast_e.
When received EINTR, do set socket->id to -1 for f_socket_close_fast_e.

Be consistent and make length parameter optional for the socket read and write functions.
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/c/socket/common.h