Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 280dfb8

Browse files
committed
getpriority: reset errno prior to syscall
1 parent 48594ba commit 280dfb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pp_sys.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4696,6 +4696,7 @@ PP(pp_getpriority)
46964696
dSP; dTARGET;
46974697
const id_t who = POPu; /* linux: unsigned int, bsd: u32 */
46984698
const int which = TOPi;
4699+
errno = 0;
46994700
SETi( getpriority(PRIORITY_WHICH_T(which), who) );
47004701
RETURN;
47014702
#else

0 commit comments

Comments
 (0)