www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tets...@secom-sis.co.jp (Tetsuya Furukawa)
Subject Re: general/1056: flock locking broken
Date Wed, 15 Oct 1997 08:20:00 GMT
The following reply was made to PR general/1056; it has been noted by GNATS.

From: tetsuya@secom-sis.co.jp (Tetsuya Furukawa)
To: apbugs@apache.org
Cc:  Subject: Re: general/1056: flock locking broken
Date: Wed, 15 Oct 1997 17:15:56 +0900

 Sorry, it's wrong.
 
 > #if defined(USE_FLOCK_SERIALIZED_ACCEPT)
 >+    unlink(lock_fname);
 >     lock_fd = popenf(pconf, lock_fname, O_WRONLY, 0);
 
 
 The thing I'd like to say is:
 
 --- http_main.c.orig    Wed Oct 15 16:38:16 1997
 +++ http_main.c Wed Oct 15 16:59:40 1997
 @@ -264,6 +264,7 @@
  {
  
      expand_lock_fname (p);
 +    unlink(lock_fname);
      lock_fd = popenf(p, lock_fname, O_CREAT | O_WRONLY | O_EXCL, 0644);
      if (lock_fd == -1)
      {
 

Mime
View raw message