Expose real operating system process IDs on Windows via os_display_pid()
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-arm32 (push) Has been cancelled
Build / build-win (push) Has been cancelled
Build / build-freebsd (push) Has been cancelled
Build / build-musl (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled

This commit is contained in:
Andrea Mazzoleni 2026-09-05 11:42:01 +02:00
parent be3957f939
commit a0c7d69067
3 changed files with 27 additions and 1 deletions

View file

@ -1507,6 +1507,14 @@ pid_t os_spawn(char** argv, int* stdout_read_fd, int* stderr_read_fd, const char
return pid;
}
uint64_t os_display_pid(pid_t pid)
{
if (pid <= 0)
return 0;
return (uint64_t)pid;
}
pid_t os_wait(pid_t pid, int* status)
{
pid_t ret;