Show
Ignore:
Timestamp:
02/08/06 10:45:50 (3 years ago)
Author:
zoeloelip
Message:

The owner of the a sysvipc mutex will now be changed on creation of

of the mutex. The user will be set to the uid set with
--with-eaccelerator-userid. This way the semaphore doesn't need to
be public writable anymore.

Moved some inactive contributors to the inactive list.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/config.m4

    r134 r150  
    9393]) 
    9494 
     95AC_ARG_WITH(eaccelerator-userid, 
     96[  --with-eaccelerator-userid               eAccelerator runs under this userid, only needed when using sysvipc semaphores.],[ 
     97  ea_userid=$withval 
     98],[ 
     99  ea_userid=0 
     100]) 
     101 
    95102dnl PHP_BUILD_SHARED 
    96103if test "$PHP_EACCELERATOR" != "no"; then 
     
    98105  AC_DEFINE(HAVE_EACCELERATOR, 1, [Define if you like to use eAccelerator]) 
    99106 
     107  AC_DEFINE_UNQUOTED(EA_USERID, $ea_userid, [The userid eAccelerator will be running under.])  
     108     
    100109  if test "$eaccelerator_crash_detection" = "yes"; then 
    101110    AC_DEFINE(WITH_EACCELERATOR_CRASH_DETECTION, 1, [Define if you like to release eAccelerator resources on PHP crash]) 
     
    301310    msg="spinlock" 
    302311  elif test "$mm_sem_ipc" = "yes"; then 
    303     AC_DEFINE(MM_SEM_IPC, 1, [Define if you like to use sysvipc based semaphores]) 
    304     msg="sysvipc" 
     312    if test $ea_userid = 0; then 
     313        AC_MSG_ERROR("You need to pass the user id eaccelerator will be running under when using sysvipc semaphores") 
     314    else 
     315        AC_DEFINE(MM_SEM_IPC, 1, [Define if you like to use sysvipc based semaphores]) 
     316        msg="sysvipc" 
     317    fi 
    305318  elif test "$mm_sem_fcntl" = "yes"; then 
    306319    AC_DEFINE(MM_SEM_FCNTL, 1, [Define if you like to use fcntl based semaphores])