From 8c98ca3a10009b27a4e8994fd1415774f02d82a5 Mon Sep 17 00:00:00 2001 From: poa Date: Fri, 5 Jul 2024 22:53:45 +0900 Subject: [PATCH] updated return value of setsid to return Pid --- core/sys/linux/sys.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 450af9ca9..90db862e2 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -1733,9 +1733,9 @@ getpgrp :: proc "contextless" () -> (Pid, Errno) { Create a session and set the process group ID. Available since Linux 2.0. */ -setsid :: proc "contextless" () -> (Errno) { +setsid :: proc "contextless" () -> (Pid, Errno) { ret := syscall(SYS_setsid) - return Errno(-ret) + return errno_unwrap(ret, Pid) } /*