mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 14:04:21 +00:00
Should fix abrupt application termination on Unix when netplay ends.
This commit is contained in:
parent
7bcc173c5f
commit
143079efbe
@ -39,6 +39,7 @@
|
||||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
#define CONST_CAST
|
||||
#define NONCONST_CAST
|
||||
#endif
|
||||
@ -116,6 +117,8 @@ static bool init_socket(netplay_t *handle, const char *server, uint16_t port)
|
||||
WSACleanup();
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
signal(SIGPIPE, SIG_IGN); // Do not like SIGPIPE killing our app :(
|
||||
#endif
|
||||
|
||||
struct addrinfo hints, *res = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user