1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-13 07:03:25 +00:00

Output statistics per option and SIGUSR1

This commit is contained in:
Gerhard Rieger 2023-10-26 18:42:41 +02:00
parent 2af6089436
commit c2196d6f15
17 changed files with 304 additions and 26 deletions

View file

@ -25,7 +25,7 @@ static void signal_kill_pid(int dummy) {
int xioshutdown(xiofile_t *sock, int how) {
int result = 0;
if (sock->tag == XIO_TAG_INVALID) {
if (sock->tag == XIO_TAG_INVALID || sock->tag & XIO_TAG_CLOSED) {
Error("xioshutdown(): invalid file descriptor");
errno = EINVAL;
return -1;