Browse Source

testlock.c: replace function call kill with raise

Replacing function call `kill(0, SIGINT);` with `(void)raise(SIGINT);` in file test/testlock.c.
The `kill()` function is not available on Unix systems when compiling without system extensions enabled.
Petar Popovic 1 year ago
parent
commit
e0b45fed06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testlock.c

+ 1 - 1
test/testlock.c

@@ -102,7 +102,7 @@ Run(void *data)
 #ifndef _WIN32
 static Uint32 hit_timeout(Uint32 interval, void *param) {
     SDL_Log("Hit timeout! Sending SIGINT!");
-    kill(0, SIGINT);
+    (void)raise(SIGINT);
     return 0;
 }
 #endif