mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2003-08-13 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/syscalls.list: Add time syscall. * elf/Makefile: Use LC_ALL=C in a few cases where we call external text processing tools. * sysdeps/pthread/aio_misc.h (struct waitlist): Don't add caller_pid element unless BROKEN_THREAD_SIGNALS is defined. (struct requestlist): Likewise. * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Don't fill in caller_pid of new request unless BROKEN_THREAD_SIGNALS is defined. * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise. * sysdeps/pthread/aio_notify.c (__aio_notify_only): Remove caller_pid parameter unless BROKEN_THREAD_SIGNALS is defined. Adjust callers. Pass current PID to __aio_sigqueue. * sysdeps/pthread/lio_listio.c (lio_listio): Adjust __aio_notify_only call. Don't initialize caller_pid field of waitlist element.
This commit is contained in:
@ -100,8 +100,14 @@ lio_listio (mode, list, nent, sig)
|
||||
pthread_mutex_unlock (&__aio_requests_mutex);
|
||||
|
||||
if (mode == LIO_NOWAIT)
|
||||
{
|
||||
#ifdef BROKEN_THREAD_SIGNALS
|
||||
__aio_notify_only (sig,
|
||||
sig->sigev_notify == SIGEV_SIGNAL ? getpid () : 0);
|
||||
#else
|
||||
__aio_notify_only (sig);
|
||||
#endif
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -122,7 +128,9 @@ lio_listio (mode, list, nent, sig)
|
||||
waitlist[cnt].next = requests[cnt]->waiting;
|
||||
waitlist[cnt].counterp = &total;
|
||||
waitlist[cnt].sigevp = NULL;
|
||||
#ifdef BROKEN_THREAD_SIGNALS
|
||||
waitlist[cnt].caller_pid = 0; /* Not needed. */
|
||||
#endif
|
||||
requests[cnt]->waiting = &waitlist[cnt];
|
||||
++total;
|
||||
}
|
||||
@ -159,7 +167,9 @@ lio_listio (mode, list, nent, sig)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef BROKEN_THREAD_SIGNALS
|
||||
pid_t caller_pid = sig->sigev_notify == SIGEV_SIGNAL ? getpid () : 0;
|
||||
#endif
|
||||
total = 0;
|
||||
|
||||
for (cnt = 0; cnt < nent; ++cnt)
|
||||
@ -173,7 +183,9 @@ lio_listio (mode, list, nent, sig)
|
||||
waitlist->list[cnt].next = requests[cnt]->waiting;
|
||||
waitlist->list[cnt].counterp = &waitlist->counter;
|
||||
waitlist->list[cnt].sigevp = &waitlist->sigev;
|
||||
#ifdef BROKEN_THREAD_SIGNALS
|
||||
waitlist->list[cnt].caller_pid = caller_pid;
|
||||
#endif
|
||||
requests[cnt]->waiting = &waitlist->list[cnt];
|
||||
++total;
|
||||
}
|
||||
|
Reference in New Issue
Block a user