Skip to content

Commit

Permalink
libs/libc: use _SCHED_GETPID in getpgrp implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
  • Loading branch information
pkarashchenko committed Aug 7, 2023
1 parent 6779cdb commit f4934ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/libc/unistd/lib_getpgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include <unistd.h>

#include <nuttx/sched.h>

/****************************************************************************
* Public Functions
****************************************************************************/
Expand All @@ -44,5 +46,5 @@

pid_t getpgrp(void)
{
return getpid();
return _SCHED_GETPID();
}

0 comments on commit f4934ca

Please sign in to comment.