From db54f488ee24b14027c485e0005950dfdd5ef885 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 8 Jul 2003 03:40:49 +0000 Subject: Update. 2003-07-07 Ulrich Drepper * descr.h (struct pthread): Add pid field. * allocatestack.c (allocate_stack): Initialize pid field in descriptor. (__reclaim_stacks): Likewise. * init.c (sigcancel_handler): If __ASSUME_CORRECT_SI_PID is defined also check for PID of the signal source. (__pthread_initialize_minimal_internal): Also initialize pid field of initial thread's descriptor. * pthread_cancel.c: Use tgkill instead of tkill if possible. * sysdeps/unix/sysv/linux/fork.c: Likewise. * sysdeps/unix/sysv/linux/pt-raise.c: Likewise. * sysdeps/unix/sysv/linux/pthread_kill.c: Likewise. * sysdeps/unix/sysv/linux/raise.c: Likewise. --- nptl/descr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nptl/descr.h') diff --git a/nptl/descr.h b/nptl/descr.h index 26ee42d7c3..fb364b95ca 100644 --- a/nptl/descr.h +++ b/nptl/descr.h @@ -177,6 +177,9 @@ 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