Skip to main content

Module spawn_process

Module spawn_process 

Source
Expand description

§Process Spawner Module

Provides platform-independent facilities for spawning, detaching, and managing child processes (such as the REKTAL Kernel and GUI client).

§Process Independence & Detachment

All processes spawned via this module are detached from the parent Launcher process lifecycle:

  • On Linux / macOS (Unix): Child processes and terminal emulators are placed in their own process group (process_group(0) / setpgid) and have standard streams decoupled, ensuring they outlive the Launcher when it closes.
  • On Windows: Processes are detached using CREATE_NEW_PROCESS_GROUP and (optionally) CREATE_NEW_CONSOLE.

Functions§

spawn_gui
Spawns the REKTAL GUI client executable with optional arguments and console window.
spawn_kernel
Spawns the REKTAL Kernel executable with optional arguments and console window.
spawn_linux 🔒
Spawns a process on Linux, querying available terminal emulators when console output is requested.
spawn_process
Spawns a REKTAL binary (e.g. "kernel" or "gui") as an independent, detached process.