From 3cf595e562f955e399d80ea9d053e41d50469e6b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 22 Aug 1995 22:47:57 +0000 Subject: Tue Aug 22 16:49:12 1995 Roland McGrath * inet/netdb.h: Moved to resolv. * inet/Makefile (headers): Remove netdb.h. * resolv/Makefile (headers): Add netdb.h. * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h, resolv/res_send.c: Updated from BIND-4.9.3-BETA26. * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before resuming the thread. * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'. * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects. Mon Aug 21 16:37:09 1995 Roland McGrath * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE relocs, and do nothing. Why the linker generates them we may never know. * sysdeps/mach/hurd/i386/intr-msg.h: New file. --- hurd/thread-cancel.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hurd/thread-cancel.c') diff --git a/hurd/thread-cancel.c b/hurd/thread-cancel.c index db527c3..7fb8cd2 100644 --- a/hurd/thread-cancel.c +++ b/hurd/thread-cancel.c @@ -62,6 +62,12 @@ hurd_thread_cancel (thread_t thread) (natural_t *) &state.basic, MACHINE_THREAD_STATE_COUNT); + if (ss->cancel_hook) + /* The code being cancelled has a special wakeup function. + Calling this should make the thread wake up and check the + cancellation flag. */ + (*ss->cancel_hook) (); + __thread_resume (thread); } -- cgit v1.1