From cb5b9388dad6d0524322d45eafaa7b5d7b00b554 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 27 Dec 2003 07:38:25 +0000 Subject: Update. 2003-12-23 Jakub Jelinek * sysdeps/unix/sysv/linux/raise.c (raise): Protect pid = selftid setting with __ASSUME_TGKILL || defined __NR_tgkill. If pid is 0, set it to selftid. * sysdeps/unix/sysv/linux/getpid.c (really_getpid): Make inline. Don't set self->pid but self->tid. If self->pid == 0 and self->tid != 0, return self->tid without doing a syscall. * descr.h (struct pthread): Move pid field after tid. * Makefile (tests): Add tst-raise1. * tst-raise1.c: New file. --- nptl/descr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nptl/descr.h') diff --git a/nptl/descr.h b/nptl/descr.h index 6c7f2317c9..a6e35ba3db 100644 --- a/nptl/descr.h +++ b/nptl/descr.h @@ -121,6 +121,9 @@ struct pthread therefore stack) used' flag. */ pid_t tid; + /* Process ID - thread group ID in kernel speak. */ + pid_t pid; + /* List of cleanup buffers. */ struct _pthread_cleanup_buffer *cleanup; @@ -178,9 +181,6 @@ struct pthread /* Two-level array for the thread-specific data. */ struct pthread_key_data *specific[PTHREAD_KEY_1STLEVEL_SIZE]; - /* Process ID - thread group ID in kernel speak. */ - pid_t pid; - /* True if events must be reported. */ bool report_events; -- cgit v1.2.3