summaryrefslogtreecommitdiff
path: root/hurd/sigunwind.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 15:49:30 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 15:49:30 +0000
commite14d51045326808a48d43d7e0b45860cd33e2b17 (patch)
tree90b47e500bf7b1ccffae92fc2105cea5b8b7b61f /hurd/sigunwind.c
parentc949e9c224c0fc890982cc42797ae868b04faa00 (diff)
parent963c37d5c0eb62b38f8764b23931c0dcdd497a13 (diff)
Merge commit 'refs/top-bases/t/context_functions' into t/context_functions
Diffstat (limited to 'hurd/sigunwind.c')
-rw-r--r--hurd/sigunwind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/sigunwind.c b/hurd/sigunwind.c
index 1f224621bb..40e0f679f7 100644
--- a/hurd/sigunwind.c
+++ b/hurd/sigunwind.c
@@ -1,5 +1,5 @@
/* longjmp cleanup function for unwinding past signal handlers.
- Copyright (C) 1995-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,7 @@
#include <hurd.h>
#include <thread_state.h>
+#include <hurd/threadvar.h>
#include <jmpbuf-unwind.h>
#include <assert.h>
#include <stdint.h>
@@ -38,8 +39,7 @@ _hurdsig_longjmp_from_handler (void *data, jmp_buf env, int val)
{
/* Destroy the MiG reply port used by the signal handler, and restore
the reply port in use by the thread when interrupted. */
- mach_port_t *reply_port =
- (mach_port_t *) __hurd_threadvar_location (_HURD_THREADVAR_MIG_REPLY);
+ mach_port_t *reply_port = &__hurd_local_reply_port;
if (*reply_port)
{
mach_port_t port = *reply_port;