Mac and Linux SDL2 binary snapshots
Edward Rudd
2020-05-02 03f8528315fa46c95991a34f3325d7b33ae5538c
source/src/video/wayland/SDL_waylanddatamanager.c
@@ -1,6 +1,6 @@
/*
  Simple DirectMedia Layer
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
  Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
@@ -53,7 +53,11 @@
    sigemptyset(&sig_set);
    sigaddset(&sig_set, SIGPIPE);  
    pthread_sigmask(SIG_BLOCK, &sig_set, &old_sig_set);
#if SDL_THREADS_DISABLED
    sigprocmask(SIG_BLOCK, &sig_set, &old_sig_set);
#else
    pthread_sigmask(SIG_BLOCK, &sig_set, &old_sig_set);
#endif
    if (ready == 0) {
        bytes_written = SDL_SetError("Pipe timeout");
@@ -70,7 +74,12 @@
    }
    sigtimedwait(&sig_set, 0, &zerotime);
#if SDL_THREADS_DISABLED
    sigprocmask(SIG_SETMASK, &old_sig_set, NULL);
#else
    pthread_sigmask(SIG_SETMASK, &old_sig_set, NULL);
#endif
    return bytes_written;
}