odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.89k stars 606 forks source link

[sys/linux]: change setsid to return Pid #3878

Closed Poaetce closed 4 months ago

Poaetce commented 4 months ago

The setsid syscall returns the PID of the calling process upon success. The procedure currently only returns an Errno, causing it to return an invalid enum value when it happens. I updated the procedure to return Pid as well.