mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
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
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:
parent
be3957f939
commit
a0c7d69067
3 changed files with 27 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue