apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/threadproc/unix signals.c
Date Sun, 25 Feb 2001 06:39:35 GMT
rbb         01/02/24 22:39:35

  Modified:    .        configure.in
               include  apr.h.in apr_thread_proc.h
               threadproc/unix signals.c
  Log:
  Don't define the signal thread logic is sigwait isn't defined.  Hopefully
  any platform like this will be able to mimic the signal thread, but for
  now this fixes any machine without sigwait.
  
  Revision  Changes    Path
  1.238     +2 -0      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.237
  retrieving revision 1.238
  diff -u -d -b -w -u -r1.237 -r1.238
  --- configure.in	2001/02/24 04:29:21	1.237
  +++ configure.in	2001/02/25 06:39:34	1.238
  @@ -635,6 +635,8 @@
   
   AC_SUBST(threads)
   
  +AC_CHECK_FUNCS(sigwait, [ have_sigwait="1" ], [ have_sigwait="0" ]) 
  +
   dnl THIS MUST COME AFTER THE THREAD TESTS - FreeBSD doesn't always have a
   dnl threaded poll() and we don't want to use sendfile on early FreeBSD 
   dnl systems if we are also using threads.
  
  
  
  1.69      +1 -0      apr/include/apr.h.in
  
  Index: apr.h.in
  ===================================================================
  RCS file: /home/cvs/apr/include/apr.h.in,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -d -b -w -u -r1.68 -r1.69
  --- apr.h.in	2001/02/24 11:23:19	1.68
  +++ apr.h.in	2001/02/25 06:39:34	1.69
  @@ -80,6 +80,7 @@
   #define APR_HAVE_MEMMOVE        @have_memmove@
   #define APR_HAVE_SETRLIMIT      @have_setrlimit@
   #define APR_HAVE_SIGACTION      @have_sigaction@
  +#define APR_HAVE_SIGWAIT        @have_sigwait@
   #define APR_HAVE_STRCASECMP     @have_strcasecmp@
   #define APR_HAVE_STRDUP         @have_strdup@
   #define APR_HAVE_STRICMP        @have_stricmp@
  
  
  
  1.58      +1 -1      apr/include/apr_thread_proc.h
  
  Index: apr_thread_proc.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_thread_proc.h,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -d -b -w -u -r1.57 -r1.58
  --- apr_thread_proc.h	2001/02/23 16:08:05	1.57
  +++ apr_thread_proc.h	2001/02/25 06:39:34	1.58
  @@ -588,7 +588,7 @@
   APR_DECLARE(void) apr_pool_note_subprocess(apr_pool_t *a, apr_proc_t *pid,
                                         enum kill_conditions how);
   
  -#if APR_HAS_THREADS && !defined(OS2)
  +#if APR_HAS_THREADS && !defined(OS2) && defined(APR_HAS_SIGWAIT)
   /**
    * Setup the process for a single thread to be used for all signal handling.
    * @warn This must be called before any threads are created
  
  
  
  1.24      +1 -1      apr/threadproc/unix/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -d -b -w -u -r1.23 -r1.24
  --- signals.c	2001/02/23 02:06:14	1.23
  +++ signals.c	2001/02/25 06:39:34	1.24
  @@ -267,7 +267,7 @@
   
   #endif /* SYS_SIGLIST_DECLARED */
   
  -#if APR_HAS_THREADS && !defined(OS2)
  +#if APR_HAS_THREADS && !defined(OS2) && defined(HAVE_SIGWAIT)
   static void *signal_thread_func(void *signal_handler)
   {
       sigset_t sig_mask;
  
  
  

Mime
View raw message