about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-08-22 20:53:23 +0000
committerRoland McGrath <roland@gnu.org>1995-08-22 20:53:23 +0000
commit207eb76afba6503af9c4ab5711bfd76f9697c1ad (patch)
tree8ae5b3b237426b400f257401affc92798ed439b7
parent537257ae0f6cc00568597f14e44033f7005a59f6 (diff)
downloadglibc-207eb76afba6503af9c4ab5711bfd76f9697c1ad.tar.gz
glibc-207eb76afba6503af9c4ab5711bfd76f9697c1ad.tar.xz
glibc-207eb76afba6503af9c4ab5711bfd76f9697c1ad.zip
(struct hurd_sigstate): New member `cancel_hook'.
-rw-r--r--hurd/hurd/signal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index a032313e4e..6a188bd774 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -85,7 +85,9 @@ struct hurd_sigstate
        thread itself, and always inside a critical section.  */
     struct hurd_userlink *active_resources;
 
-    volatile int cancel;	/* Flag set by hurd_thread_cancel.  */
+    /* These are locked normally.  */
+    int cancel;			/* Flag set by hurd_thread_cancel.  */
+    void (*cancel_hook) (void);	/* Called on cancellation.  */
   };
 
 /* Linked list of states of all threads whose state has been asked for.  */