Forráskód Böngészése

If posix_spawn() is available, so is sigaction

Sam Lantinga 7 hónapja
szülő
commit
604d0c519e
1 módosított fájl, 0 hozzáadás és 7 törlés
  1. 0 7
      src/process/posix/SDL_posixprocess.c

+ 0 - 7
src/process/posix/SDL_posixprocess.c

@@ -74,7 +74,6 @@ static bool SetupStream(SDL_Process *process, int fd, const char *mode, const ch
 
 static void IgnoreSignal(int sig)
 {
-#ifdef HAVE_SIGACTION
     struct sigaction action;
 
     sigaction(SIGPIPE, NULL, &action);
@@ -86,12 +85,6 @@ static void IgnoreSignal(int sig)
         action.sa_handler = SIG_IGN;
         sigaction(sig, &action, NULL);
     }
-#elif defined(HAVE_SIGNAL_H)
-    void (*ohandler)(int) = signal(sig, SIG_IGN);
-    if (ohandler != SIG_DFL && ohandler != SIG_IGN) {
-        signal(sig, ohandler);
-    }
-#endif
 }
 
 static bool CreatePipe(int fds[2])