diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 4cbf7626..3f64a3d4 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -3065,7 +3065,7 @@ static void I_Fork(void) case 0: break; default: - if (wait(&status)) + if (wait(&status) == -1) { I_Error( "Error setting up signal reporting: fork(): %s\n",