From c0a9bffd03e62822959ba8cb0e8b083f1ec4b871 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 1 Sep 2003 02:05:32 +0000 Subject: * cygheap.cc (cygheap_init): Allocate space for sigaction array in cygheap. * cygheap.h (cygheap_types): Add HEAP_SIGS. * exceptions.cc (signal_fixup_after_exec): Remove from this file. * pinfo.h (pinfo::getsig): Just return global_sigs array. (pinfo::sigs): Delete. * sigproc.cc (signal_fixup_after_exec): Move it here. (global_sigs): New global array, moved from pinfo structure. (sigalloc): New function. Allocate global sigaction array here. (proc_subproc): Remove copysigs call. It's automatic now. * include/sys/cygwin.h (PID_NOCLDSTOP): New value. * signal.cc (sigaction): Set myself->PID_NODCLDSTOP when appropriate. * sigproc.h (sigalloc): Declare. * fnmatch.c (fnmatch): Use C90 parameters. (rangematch): Ditto. * fhandler.cc (fhandler_base::raw_read): Use right coercion to avoid a compiler warning. --- winsup/cygwin/cygheap.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/cygheap.cc') diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index c79b0017c..07151e960 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -22,6 +22,7 @@ #include "heap.h" #include "sync.h" #include "shared_info.h" +#include "sigproc.h" init_cygheap NO_COPY *cygheap; void NO_COPY *cygheap_max; @@ -203,6 +204,8 @@ cygheap_init () } if (!cygheap->fdtab) cygheap->fdtab.init (); + if (!cygheap->sigs) + sigalloc (); } /* Copyright (C) 1997, 2000 DJ Delorie */ -- cgit v1.2.3