mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 09:18:27 +00:00
Document that you should read from processes before waiting for them to exit.
Fixes https://github.com/libsdl-org/SDL/issues/11645
This commit is contained in:
parent
3001c61de0
commit
f81472d767
1 changed files with 2 additions and 0 deletions
|
@ -371,6 +371,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_KillProcess(SDL_Process *process, bool forc
|
||||||
* normally, a negative signal if it terminated due to a signal, or -255
|
* normally, a negative signal if it terminated due to a signal, or -255
|
||||||
* otherwise. It will not be changed if the process is still running.
|
* otherwise. It will not be changed if the process is still running.
|
||||||
*
|
*
|
||||||
|
* If you create a process with standard output piped to the application (`pipe_stdio` being true) then you should read all of the process output before calling SDL_WaitProcess(). If you don't do this the process might be blocked indefinitely waiting for output to be read and SDL_WaitProcess() will never return true;
|
||||||
|
*
|
||||||
* \param process The process to wait for.
|
* \param process The process to wait for.
|
||||||
* \param block If true, block until the process finishes; otherwise, report
|
* \param block If true, block until the process finishes; otherwise, report
|
||||||
* on the process' status.
|
* on the process' status.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue