apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/threadproc/unix signals.c
Date Thu, 22 Apr 2004 08:23:23 GMT
jorton      2004/04/22 01:23:23

  Modified:    threadproc/unix signals.c
  Log:
  * threadproc/unix/signals.c (apr_signal_block, apr_signal_unblock):
  Move outside #if APR_HAS_THREADS to fix non-threaded build; return
  ENOTIMPL for !APR_HAS_SIGACTION case.
  
  Revision  Changes    Path
  1.59      +10 -2     apr/threadproc/unix/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -w -d -u -r1.58 -r1.59
  --- signals.c	21 Apr 2004 01:01:28 -0000	1.58
  +++ signals.c	22 Apr 2004 08:23:23 -0000	1.59
  @@ -423,8 +423,11 @@
       return rv;
   }
   
  +#endif /* APR_HAS_THREADS && ... */
  +
   APR_DECLARE(apr_status_t) apr_signal_block(int signum)
   {
  +#if APR_HAS_SIGACTION
       sigset_t sig_mask;
       int rv;
   
  @@ -444,10 +447,14 @@
       }
   #endif
       return rv;
  +#else
  +    return APR_ENOTIMPL;
  +#endif
   }
   
   APR_DECLARE(apr_status_t) apr_signal_unblock(int signum)
   {
  +#if APR_HAS_SIGACTION
       sigset_t sig_mask;
       int rv;
   
  @@ -467,6 +474,7 @@
       }
   #endif
       return rv;
  -}
  -
  +#else
  +    return APR_ENOTIMPL;
   #endif
  +}
  
  
  

Mime
View raw message