libs/libc: use _SCHED_GETPID in getpgrp implementation
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
4bebf64d6b
commit
aa3eeaa62a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user