mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
The second call to _thread_kern_sig_defer() in sem_post() should be a call
to _thread_kern_sig_undefer().
This commit is contained in:
parent
c2534fa193
commit
f3ee83c3bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64991
|
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
|||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
|
|
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
|||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
|
|
@ -227,7 +227,7 @@ sem_post(sem_t *sem)
|
|||
|
||||
pthread_mutex_unlock(&(*sem)->lock);
|
||||
|
||||
_thread_kern_sig_defer();
|
||||
_thread_kern_sig_undefer();
|
||||
retval = 0;
|
||||
RETURN:
|
||||
return retval;
|
||||
|
|
Loading…
Reference in a new issue