I'm using mod_rewrite with apache 1.2b7 on a SunOS machine. I'm running
httpd at a high port number, so the process is running under my uid instead
of the usual "nobody". I've used plain text files as RewriteMaps with few
problems. When I try to use an executable script as a RewriteMap, though,
I receive an error: "Error getting lock. Exiting!" at my command line,
in the window where I started the server. No error is logged in the
rewrite_log or the error_log, and the site is inaccessible. The file and
directory are readable and executable, so I don't know what is causing this.
I've tried this with the two sample RewriteMap scripts at www.engelschall.com
and I receive the same error. What should I do?
Here is the portion of mod_rewrite.c that appears to generate the error.
I'm not sure what it means, so any help would be appreciated.
---
#ifdef USE_FLOCK
while ( ((rc = flock(fd, LOCK_EX)) < 0)
&& (errno == EINTR) )
continue;
#endif
if (rc < 0) {
fprintf(stderr, "Error getting lock. Exiting!");
exit(1);
}
return;
--Quote:}
Thanks.