mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
libs/libc: use _SCHED_GETPID in getpgrp implementation
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Tiago Medicci Serrano
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user