mirror of
https://repo.or.cz/socat.git
synced 2025-07-09 21:56:33 +00:00
fixed sporadic data loss on pid reuse
This commit is contained in:
parent
976d6f0b75
commit
49c0505298
4 changed files with 25 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
/* source: xioinitialize.c */
|
||||
/* Copyright Gerhard Rieger 2001-2008 */
|
||||
/* Copyright Gerhard Rieger 2001-2011 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this file contains the source for the initialize function */
|
||||
|
@ -172,7 +172,11 @@ static int xio_nokill(xiofile_t *sock) {
|
|||
returns 0 on success or != 0 if an error occurred */
|
||||
int xio_forked_inchild(void) {
|
||||
int result = 0;
|
||||
int i;
|
||||
|
||||
for (i=0; i<NUMUNKNOWN; ++i) {
|
||||
diedunknown[i] = 0;
|
||||
}
|
||||
xiodroplocks();
|
||||
#if WITH_FIPS
|
||||
if (xio_reset_fips_mode() != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue