Skip to content
Snippets Groups Projects
Commit 9677d74d authored by deuce's avatar deuce
Browse files

Fix errno, not retval. *sigh*

parent badaebd4
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ sem_trywait_block(sem_t *sem, unsigned long timeout)
retval=sem_timedwait(sem, &abstime);
if(retval && errno==ETIMEDOUT)
retval=EAGAIN;
errno=EAGAIN;
return retval;
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment