httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: httpd-2.0/os/unix unixd.c unixd.h
Date Mon, 06 May 2002 18:19:53 GMT
aaron       02/05/06 11:19:53

  Modified:    os/unix  unixd.c unixd.h
  Log:
  Add unixd_set_global_mutex_perms so we can set permissions on things like
  SysV Semaphores in the core and modules.
  
  Revision  Changes    Path
  1.50      +12 -0     httpd-2.0/os/unix/unixd.c
  
  Index: unixd.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/unix/unixd.c,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- unixd.c	25 Apr 2002 07:18:40 -0000	1.49
  +++ unixd.c	6 May 2002 18:19:53 -0000	1.50
  @@ -414,6 +414,18 @@
       return APR_SUCCESS;
   }
   
  +AP_DECLARE(apr_status_t) unixd_set_global_mutex_perms(apr_global_mutex_t *gmutex)
  +{
  +#if !APR_PROCESS_LOCK_IS_GLOBAL
  +    apr_os_global_mutex_t osgmutex;
  +    apr_os_global_mutex_get(&osgmutex, gmutex);
  +    return unixd_set_proc_mutex_perms(osgmutex.proc_mutex);
  +#else  /* APR_PROCESS_LOCK_IS_GLOBAL */
  +    /* In this case, apr_proc_mutex_t and apr_global_mutex_t are the same. */
  +    return unixd_set_proc_mutex_perms((apr_proc_mutex_t *)gmutex);
  +#endif /* APR_PROCESS_LOCK_IS_GLOBAL */
  +}
  +
   AP_DECLARE(apr_status_t) unixd_accept(void **accepted, ap_listen_rec *lr,
                                           apr_pool_t *ptrans)
   {
  
  
  
  1.36      +2 -0      httpd-2.0/os/unix/unixd.h
  
  Index: unixd.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/unix/unixd.h,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- unixd.h	25 Apr 2002 07:18:40 -0000	1.35
  +++ unixd.h	6 May 2002 18:19:53 -0000	1.36
  @@ -71,6 +71,7 @@
   #include "apr_hooks.h"
   #include "apr_thread_proc.h"
   #include "apr_proc_mutex.h"
  +#include "apr_global_mutex.h"
   
   #include <pwd.h>
   #include <grp.h>
  @@ -120,6 +121,7 @@
                              const char *arg, const char * arg2, int type);
   #endif
   AP_DECLARE(apr_status_t) unixd_set_proc_mutex_perms(apr_proc_mutex_t *pmutex);
  +AP_DECLARE(apr_status_t) unixd_set_global_mutex_perms(apr_global_mutex_t *gmutex);
   AP_DECLARE(apr_status_t) unixd_accept(void **accepted, ap_listen_rec *lr, apr_pool_t *ptrans);
   
   #ifdef HAVE_KILLPG
  
  
  

Mime
View raw message