SDL icon indicating copy to clipboard operation
SDL copied to clipboard

SDL3 Request: Process Spawning

Open namandixit opened this issue 1 year ago • 1 comments

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:

  • https://github.com/DaanDeMeyer/reproc
  • https://github.com/eidheim/tiny-process-library
  • https://github.com/sheredom/subprocess.h

namandixit avatar Aug 27 '24 12:08 namandixit

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

hardening avatar Aug 27 '24 13:08 hardening