mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 12:35:52 -04:00
Fix crash from SIGPIPE when disconnected from a server
This commit is contained in:
parent
027677e320
commit
222fe5b983
@ -2153,6 +2153,8 @@ int Platform_ConvertString(void* data, const String* src) {
|
|||||||
|
|
||||||
static void Platform_InitCommon(void) {
|
static void Platform_InitCommon(void) {
|
||||||
signal(SIGCHLD, SIG_IGN);
|
signal(SIGCHLD, SIG_IGN);
|
||||||
|
/* So writing to closed socket doesn't raise SIGPIPE */
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
Platform_InitDisplay();
|
Platform_InitDisplay();
|
||||||
pthread_mutex_init(&audio_lock, NULL);
|
pthread_mutex_init(&audio_lock, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user