mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-25 22:40:16 +00:00
ignore SIGPIPE
This commit is contained in:
parent
e0c00bcdc8
commit
c48db0f9f9
@ -27,6 +27,9 @@ int main() {
|
|||||||
std::cerr << "OpenFusion: WSAStartup failed" << std::endl;
|
std::cerr << "OpenFusion: WSAStartup failed" << std::endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// tell the OS to not kill us if you use a broken pipe, just let us know thru recv() or send()
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
settings::init();
|
settings::init();
|
||||||
std::cout << "[INFO] Protocol version: " << PROTOCOL_VERSION << std::endl;
|
std::cout << "[INFO] Protocol version: " << PROTOCOL_VERSION << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user