mirror of
https://repo.or.cz/socat.git
synced 2025-08-01 14:46:49 +00:00
Output statistics per option and SIGUSR1
This commit is contained in:
parent
2af6089436
commit
c2196d6f15
17 changed files with 304 additions and 26 deletions
|
@ -93,7 +93,7 @@ int xioclose1(struct single *pipe) {
|
|||
free(pipe->unlink_close);
|
||||
}
|
||||
|
||||
pipe->tag = XIO_TAG_INVALID;
|
||||
pipe->tag |= XIO_TAG_CLOSED;
|
||||
return 0; /*! */
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ int xioclose(xiofile_t *file) {
|
|||
if (file->tag == XIO_TAG_DUAL) {
|
||||
result = xioclose1(file->dual.stream[0]);
|
||||
result |= xioclose1(file->dual.stream[1]);
|
||||
file->tag = XIO_TAG_INVALID;
|
||||
file->tag |= XIO_TAG_CLOSED;
|
||||
} else {
|
||||
result = xioclose1(&file->stream);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue