From aa3eeaa62a407e88f769ae4cc6d85c4a1b6d3568 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Tue, 8 Aug 2023 01:42:04 +0300 Subject: [PATCH] libs/libc: use _SCHED_GETPID in getpgrp implementation Signed-off-by: Petro Karashchenko --- libs/libc/unistd/lib_getpgrp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/libc/unistd/lib_getpgrp.c b/libs/libc/unistd/lib_getpgrp.c index 2fb8d8c7d3..fbc7ecc459 100644 --- a/libs/libc/unistd/lib_getpgrp.c +++ b/libs/libc/unistd/lib_getpgrp.c @@ -24,6 +24,8 @@ #include +#include + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -44,5 +46,5 @@ pid_t getpgrp(void) { - return getpid(); + return _SCHED_GETPID(); }