Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_KillProcess - Stop a process.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

process
              The process to stop.

       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.

Header File

       Defined in SDL3/SDL_process.h

Name

       SDL_KillProcess - Stop a process.

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

See Also

(3), SDL_CreateProcess(3), (3),  SDL_CreateProcessWithProperties(3),  (3),  SDL_WaitProcess(3),  (3),
       SDL_DestroyProcess(3)

Simple Directmedia Layer                           SDL 3.2.10                                 SDL_KillProcess(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_KillProcess(SDL_Process*process,boolforce);

Thread Safety

       This function is not thread safe.

See Also