mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 12:10:53 +03: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();
|
||||
|
||||
// cygwin auto flush fails when piping
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
|
||||
for (id=0;;id++)
|
||||
{
|
||||
len = sizeof(packet);
|
||||
@ -465,6 +469,10 @@ static int win_main(const char *windivert_filter)
|
||||
default:
|
||||
DLOG("packet: id=%u drop\n", id);
|
||||
}
|
||||
|
||||
// cygwin auto flush fails when piping
|
||||
fflush(stdout);
|
||||
fflush(stderr);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user