1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-22 18:42:56 +00:00

Process last data of failed child process

This commit is contained in:
Gerhard Rieger 2023-06-15 12:53:32 +02:00
parent 4bab097ffc
commit a0e17a813a
4 changed files with 17 additions and 2 deletions

View file

@ -13,6 +13,14 @@ Features:
The number of warnings has been reduced, e.g.removing a non existing
file does in most cases no longer log a warning.
Corrections:
When a sub process (EXEC, SYSTEM) terminated with exit code other than
0, its last sent data might have been lost depending on timing of read/
write and SIGCHLD in Socat.
Now the SIGCHLD handler does not simply terminate Socat in this case,
but remembers the failure and allows further processing.
Thanks to Luke Jones for reporting this issue.
Coding:
Introduced groups_t instead of uint32_t, for more flexibility