libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.86k stars 1.83k forks source link

SDL3 Request: Process Spawning #10599

Closed namandixit closed 1 month ago

namandixit commented 2 months ago

A wrapper around fork/exec, CreateProcess, etc. to allow launching child processes with arguments. This will make running an application with a server-client architecture (similar to the original Quake) easier.

It's not too much code to do this by oneself, but it'll be good to have a battle-tested version available in SDL (especially given the subtle differences across various platforms).


Examples:

hardening commented 2 months ago

If we come to abstract this, if that could also include a facility to create communication channels between parent and child (socket pair under unixes and named pipes for windows) as it's a so common model...