projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert malloc use under libc-internal locks to use internal allocator
[musl]
/
src
/
aio
/
lio_listio.c
diff --git
a/src/aio/lio_listio.c
b/src/aio/lio_listio.c
index
7b6a03d
..
0799c15
100644
(file)
--- a/
src/aio/lio_listio.c
+++ b/
src/aio/lio_listio.c
@@
-113,7
+113,7
@@
int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, st
if (st) {
pthread_attr_t a;
if (st) {
pthread_attr_t a;
- sigset_t set;
+ sigset_t set
, set_old
;
pthread_t td;
if (sev->sigev_notify == SIGEV_THREAD) {
pthread_t td;
if (sev->sigev_notify == SIGEV_THREAD) {
@@
-128,13
+128,13
@@
int lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, st
}
pthread_attr_setdetachstate(&a, PTHREAD_CREATE_DETACHED);
sigfillset(&set);
}
pthread_attr_setdetachstate(&a, PTHREAD_CREATE_DETACHED);
sigfillset(&set);
- pthread_sigmask(SIG_BLOCK, &set, &set);
+ pthread_sigmask(SIG_BLOCK, &set, &set
_old
);
if (pthread_create(&td, &a, wait_thread, st)) {
free(st);
errno = EAGAIN;
return -1;
}
if (pthread_create(&td, &a, wait_thread, st)) {
free(st);
errno = EAGAIN;
return -1;
}
- pthread_sigmask(SIG_SETMASK, &set, 0);
+ pthread_sigmask(SIG_SETMASK, &set
_old
, 0);
}
return 0;
}
return 0;