trawick     01/07/02 13:31:45

  Modified:    locks/unix locks.c
  Log:
  set the int interprocess lock handle to -1 at init in case
  this helps keep straight what the caller of apr_os_lock_get()
  
  Revision  Changes    Path
  1.60      +3 -0      apr/locks/unix/locks.c
  
  Index: locks.c
  ===================================================================
  RCS file: /home/cvs/apr/locks/unix/locks.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- locks.c   2001/07/02 01:39:10     1.59
  +++ locks.c   2001/07/02 20:31:44     1.60
  @@ -241,6 +241,9 @@
       new->pool  = pool;
       new->type  = type;
       new->scope = scope;
  +#if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || 
APR_HAS_FLOCK_SERIALIZE
  +    new->interproc = -1;
  +#endif
   
       if ((stat = create_lock(new, mech, fname)) != APR_SUCCESS)
           return stat;
  
  
  

Reply via email to