libs/libc: use _SCHED_GETPID in getpgrp implementation

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-08-08 01:42:04 +03:00 committed by Tiago Medicci Serrano
parent 4bebf64d6b
commit aa3eeaa62a
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@
#include <unistd.h>
#include <nuttx/sched.h>
/****************************************************************************
* Public Functions
****************************************************************************/
@ -44,5 +46,5 @@
pid_t getpgrp(void)
{
return getpid();
return _SCHED_GETPID();
}