apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject cvs commit: apr/threadproc/netware signals.c
Date Wed, 21 Apr 2004 21:45:38 GMT
madhum      2004/04/21 14:45:38

  Modified:    include  apr_signal.h
               threadproc/win32 signals.c
               threadproc/netware signals.c
  Log:
  Added two new functions apr_signal_block and apr_signal_unblock to
  block/unblock only certain signals.
  
  The functions are currently enabled for Unix (beos, os2). It's a null function
  for win32 and netware (I really don't know if they even require such a feature)
  
  Revision  Changes    Path
  1.20      +14 -0     apr/include/apr_signal.h
  
  Index: apr_signal.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_signal.h,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- apr_signal.h	13 Feb 2004 09:38:28 -0000	1.19
  +++ apr_signal.h	21 Apr 2004 21:45:38 -0000	1.20
  @@ -85,6 +85,20 @@
    */
   void apr_signal_init(apr_pool_t *pglobal);
   
  +/**
  + * Block the delivery of a particular signal
  + * @param signum The signal number
  + * @return status
  + */
  +APR_DECLARE(apr_status_t) apr_signal_block(int signum);
  +
  +/**
  + * Enable the delivery of a particular signal
  + * @param signum The signal number
  + * @return status
  + */
  +APR_DECLARE(apr_status_t) apr_signal_unblock(int signum);
  +
   /** @} */
   
   #ifdef __cplusplus
  
  
  
  1.28      +10 -0     apr/threadproc/win32/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/win32/signals.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- signals.c	13 Feb 2004 09:38:38 -0000	1.27
  +++ signals.c	21 Apr 2004 21:45:38 -0000	1.28
  @@ -53,3 +53,13 @@
   {
       return "unknown signal (not supported)";
   }
  +
  +APR_DECLARE(apr_status_t) apr_signal_block(int signum)
  +{
  +    return APR_SUCCESS;
  +}
  +
  +APR_DECLARE(apr_status_t) apr_signal_unblock(int signum)
  +{
  +    return APR_SUCCESS;
  +}
  
  
  
  1.11      +10 -0     apr/threadproc/netware/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/netware/signals.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- signals.c	13 Feb 2004 09:38:37 -0000	1.10
  +++ signals.c	21 Apr 2004 21:45:38 -0000	1.11
  @@ -69,3 +69,13 @@
   
       return rv;
   }
  +
  +APR_DECLARE(apr_status_t) apr_signal_block(int signum)
  +{
  +    return APR_SUCCESS;
  +}
  +
  +APR_DECLARE(apr_status_t) apr_signal_unblock(int signum)
  +{
  +    return APR_SUCCESS;
  +}
  
  
  

Mime
View raw message