mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 22:23:24 +00:00
Replaced SIGUSR1 with socketpair for synchronization between parent and child processes on RECVFROM type addresses
This commit is contained in:
parent
a0e17a813a
commit
02483ff39e
12 changed files with 269 additions and 257 deletions
1
socat.c
1
socat.c
|
@ -720,6 +720,7 @@ int socat(const char *address1, const char *address2) {
|
|||
the communication channel, so continue */
|
||||
Info2("child "F_pid" has already died with status %d",
|
||||
XIO_RDSTREAM(sock1)->para.exec.pid, statunknown[i]);
|
||||
++num_child; /* it was counted as anonymous child, undo */
|
||||
if (statunknown[i] != 0) {
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue