mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-13 18:28:34 +05:00
winws: enable stdout flushing when piping
This commit is contained in:
parent
64ef53a737
commit
d42a892828
Binary file not shown.
Binary file not shown.
@ -417,6 +417,10 @@ static int win_main(const char *windivert_filter)
|
|||||||
|
|
||||||
pre_desync();
|
pre_desync();
|
||||||
|
|
||||||
|
// cygwin auto flush fails when piping
|
||||||
|
fflush(stdout);
|
||||||
|
fflush(stderr);
|
||||||
|
|
||||||
for (id=0;;id++)
|
for (id=0;;id++)
|
||||||
{
|
{
|
||||||
len = sizeof(packet);
|
len = sizeof(packet);
|
||||||
@ -465,6 +469,10 @@ static int win_main(const char *windivert_filter)
|
|||||||
default:
|
default:
|
||||||
DLOG("packet: id=%u drop\n", id);
|
DLOG("packet: id=%u drop\n", id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// cygwin auto flush fails when piping
|
||||||
|
fflush(stdout);
|
||||||
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user