Re: locking problems (Apache's solution)

Jonathan Roy (
Fri, 30 May 1997 11:18:38 -0400

Message-Id: <>
Date: Fri, 30 May 1997 11:18:38 -0400
From: Jonathan Roy <>
Subject: Re: locking problems (Apache's solution)

  For what it is worth, looking at Apache's serialized accept() code, they
use a 'whence' of 0 vs fastcgi's SEEK_SET, they make a file in /var/tmp and
lock the file instead of the listening fd, and their lock call is:

    while ((ret = fcntl(lock_fd, F_SETLKW, &lock_it)) < 0 && errno == EINTR)

  So they retry on < 0 and ignore EINTR.


Jonathan Roy - -- Idle Communications, Inc.
Mail to advertise with the Games Domain! or