Function SDL_KillProcess

pub unsafe extern "C" fn SDL_KillProcess(
    process: *mut SDL_Process,
    force: bool,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Stop a process.

§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.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Thread safety

This function is not thread safe.

§Availability

This function is available since SDL 3.2.0.

§See also