Skip to content

Commit

Permalink
2007-05-16 Roland McGrath <roland@redhat.com>
Browse files Browse the repository at this point in the history
	* init.c (__nptl_initial_report_events): New variable.
	(__pthread_initialize_minimal_internal): Initialize pd->report_events
	to that.
  • Loading branch information
Roland McGrath committed Jun 26, 2007
1 parent a28876d commit 0ecf9c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nptl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ sighandler_setxid (int sig, siginfo_t *si, void *ctx)
extern void **__libc_dl_error_tsd (void) __attribute__ ((const));


/* This can be set by the debugger before initialization is complete. */
static bool __nptl_initial_report_events;

void
__pthread_initialize_minimal_internal (void)
{
Expand Down Expand Up @@ -297,6 +300,9 @@ __pthread_initialize_minimal_internal (void)
INIT_LIST_HEAD (&__stack_user);
list_add (&pd->list, &__stack_user);

/* Before initializing __stack_user, the debugger could not find us and
had to set __nptl_initial_report_events. Propagate its setting. */
THREAD_SETMEM (pd, report_events, __nptl_initial_report_events);

/* Install the cancellation signal handler. If for some reason we
cannot install the handler we do not abort. Maybe we should, but
Expand Down

0 comments on commit 0ecf9c1

Please sign in to comment.