Skip to content

Add native Windows process spawning and waiting APIs #429

Open

Description

@LunaStev

Summary

The Windows process provider currently implements only exit and getpid. POSIX-only operations such as fork, execve, and waitpid return -ENOSYS, leaving std::process without a usable Windows process model.

Related issue

Scope

Design and implement a Windows-native process surface based on process creation, waiting, exit status retrieval, and handle cleanup. Do not emulate fork when Windows has no equivalent; expose portable high-level behavior over a native provider.

Acceptance criteria

  • A Wave program can spawn a child executable with arguments on Windows.
  • The parent can wait for the child and obtain its exit status.
  • Process and thread handles are closed on success and failure paths.
  • Command-line and environment encoding rules are documented in code comments.
  • Existing POSIX providers and public compatibility functions continue to compile.
  • Windows CI runs a native spawn/wait smoke test.
  • The final API has a clear unsupported contract for genuinely POSIX-only operations.

Activity

  1. added
    enhancement
    help wanted
    os support
    platform-specific feature
    on Aug 29, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedos supportplatform-specific feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions