From 5b84f75b909314679a32142920d2ce63567797d5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 15 Mar 2003 23:47:44 +0000 Subject: [PATCH] Use the generic Linux code for most parts. --- sysdeps/unix/sysv/linux/ia64/system.c | 41 +-------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/sysdeps/unix/sysv/linux/ia64/system.c b/sysdeps/unix/sysv/linux/ia64/system.c index 67a09cf232..413ff27b39 100644 --- a/sysdeps/unix/sysv/linux/ia64/system.c +++ b/sysdeps/unix/sysv/linux/ia64/system.c @@ -16,12 +16,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include -#include -#include -#include -#include -#include #include /* We have to and actually can handle cancelable system(). The big @@ -38,37 +32,4 @@ &pid, NULL, NULL) #endif -static void cancel_handler (void *arg); - -#define CLEANUP_HANDLER \ - __libc_cleanup_region_start (1, cancel_handler, &pid) - -#define CLEANUP_RESET \ - __libc_cleanup_region_end (0) - - -/* Linux has waitpid(), so override the generic unix version. */ -#include - - -/* The cancellation handler. */ -static void -cancel_handler (void *arg) -{ - pid_t child = *(pid_t *) arg; - - INTERNAL_SYSCALL_DECL (err); - INTERNAL_SYSCALL (kill, err, 2, child, SIGKILL); - - TEMP_FAILURE_RETRY (__waitpid (child, NULL, 0)); - - DO_LOCK (); - - if (SUB_REF () == 0) - { - (void) __sigaction (SIGQUIT, &quit, (struct sigaction *) NULL); - (void) __sigaction (SIGINT, &intr, (struct sigaction *) NULL); - } - - DO_UNLOCK (); -} +#include "../system.c"