1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

emulation on host: avoid closing STDIN (#8577)

- avoid closing STDIN
- less verbose during compilation
- better handling user directories
- missing str{,n}case_P declarations
This commit is contained in:
david gauchard
2022-05-20 16:54:27 +02:00
committed by GitHub
parent 8f71d2c042
commit b080c50713
4 changed files with 15 additions and 6 deletions

View File

@ -129,7 +129,7 @@ bool WiFiServer::hasClient()
void WiFiServer::close()
{
if (pcb2int(_listen_pcb) >= 0)
if (pcb2int(_listen_pcb) >= 3) // 0=stdin 1=stdout 2=stderr
::close(pcb2int(_listen_pcb));
_listen_pcb = int2pcb(-1);
}