From 589bd0a7de50af4d7a5e1c581d20e53f395f1a29 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Mon, 3 Feb 2020 18:52:23 +0300 Subject: [PATCH] LibC: Implement getsid() We've had a declaration, but not a definition. --- Libraries/LibC/unistd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index df6349111e..4a1d6b1e46 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -206,6 +206,12 @@ pid_t getppid() return syscall(SC_getppid); } +pid_t getsid(pid_t pid) +{ + int rc = syscall(SC_getsid, pid); + __RETURN_WITH_ERRNO(rc, rc, -1); +} + pid_t setsid() { int rc = syscall(SC_setsid);