Stop a process.
Defined in <SDL3/SDL_process.h>
bool SDL_KillProcess(SDL_Process *process, bool force);
SDL_Process * | process | The process to stop. |
bool | force | true to terminate the process immediately, false to try to stop the process gracefully. In general you should try to stop the process gracefully first as terminating a process may leave it with half-written data or in some other unstable state. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This function is not thread safe.
This function is available since SDL 3.1.3.