Re: cvs commit: apr STATUS

2001-12-26 Thread Justin Erenkrantz
On Fri, Dec 21, 2001 at 07:57:38AM -0500, Jeff Trawick wrote: [EMAIL PROTECTED] writes: jerenkrantz01/12/12 02:05:54 Modified:.STATUS Log: Not a big deal, but worth noting. If anyone has an idea on how to detect this, it'd be general goodness to error out

Re: cvs commit: apr STATUS

2001-12-26 Thread Jeff Trawick
Justin Erenkrantz [EMAIL PROTECTED] writes: Maybe we should try to acquire/release the lock during create time, and return the acquire errno if that fails. Maybe the error codes differ between systems but at least we fail ahead of time. That sounds easy and harmless to me. Any

Re: cvs commit: apr STATUS

2001-12-26 Thread Justin Erenkrantz
On Tue, Dec 25, 2001 at 08:19:19PM -0500, Jeff Trawick wrote: I'd like to see this as a lock creation option. Something like a flag - say, APR_LOCK_VERIFY or some such. I don't think we should do the acquire/release unless asked for by the caller. I think this might mean changing or

Re: cvs commit: apr STATUS

2001-12-26 Thread Jeff Trawick
Justin Erenkrantz [EMAIL PROTECTED] writes: On Tue, Dec 25, 2001 at 08:19:19PM -0500, Jeff Trawick wrote: I'd like to see this as a lock creation option. Something like a flag - say, APR_LOCK_VERIFY or some such. I don't think we should do the acquire/release unless asked for by the

Re: cvs commit: apr STATUS

2001-12-26 Thread Justin Erenkrantz
On Tue, Dec 25, 2001 at 09:47:12PM -0500, Jeff Trawick wrote: Other than performance, why should the caller care? The lock can't block. Unbeknownst to the caller we or libc get locks on other callers. Still curious, Hmm. Let me try and restate it. It's a feeling that doing this would be

[PATCH] suppress locking for buffered files unless APR_XTHREAD is set

2001-12-26 Thread Brian Pane
About half the startup time for the httpd is spent locking and unlocking the mutex that protects the apr_file_t's internal buffer--even though only one thread is using the file. This patch skips the locking unless the APR_XTHREAD flag has been set for the file. --Brian Index:

[PATCH] add apr_utoa function

2001-12-26 Thread Brian Pane
A counterpart to apr_itoa(), so that we can eliminate some inefficient 'sprintf(foo, %u, bar)' calls in the httpd. Index: srclib/apr/include/apr_strings.h === RCS file: /home/cvspublic/apr/include/apr_strings.h,v retrieving revision

segfault in worker mpm due to thread return values on stack

2001-12-26 Thread Brian Pane
I'm seeing a segfault during child process shutdown with the worker MPM on Solaris. It appears to happen because the worker threads do this: static void *worker_thread(apr_thread_t *thd, void * dummy) { proc_info * ti = dummy; int process_slot = ti-pid; int thread_slot = ti-tid;

Re: segfault in worker mpm due to thread return values on stack

2001-12-26 Thread Aaron Bannert
On Wed, Dec 26, 2001 at 04:54:00AM -0800, Brian Pane wrote: I'm seeing a segfault during child process shutdown with the worker MPM on Solaris. It appears to happen because the worker threads do this: static void *worker_thread(apr_thread_t *thd, void * dummy) { proc_info * ti = dummy;

Re: cvs commit: apr-util buildconf

2001-12-26 Thread Justin Erenkrantz
On Wed, Dec 26, 2001 at 06:10:30PM -, [EMAIL PROTECTED] wrote: @@ -1,5 +1,8 @@ #!/bin/sh +# Remove aclocal.m4 as it'll break some builds... [EMAIL PROTECTED] aclocal.m4 ^ | Sticky fingers? We're not in a makefile. =) -- justin

Re: cvs commit: apr-util buildconf

2001-12-26 Thread Jeff Trawick
[EMAIL PROTECTED] writes: +# Remove aclocal.m4 as it'll break some builds... [EMAIL PROTECTED] aclocal.m4 Don't you mean rm -f aclocal.m4 ? I get ... rebuilding srclib/apr-util/configure ./buildconf: @rm: command not found Creating include/private/apu_config.h ... ... -- Jeff

Re: cvs commit: apr-util buildconf

2001-12-26 Thread dreid
Thanks Jeff. Fix syntax error. I suspect this is what David intended in the previous commit. It is probably closer to what I actually intended. :) We should maybe try and check if the file exists before we remove it though to stop silly errors being presented to the user. david

FreeBSD db choice in apr-util

2001-12-26 Thread dreid
I'm seeing a lot of errors when trying to decide which db to use in apr- util. The exact errors will have to wait until I get home, but the final bit of the error says to use --with-dbm=, but that doesn't work either!! Any ideas? david

Largefile support?

2001-12-26 Thread Justin Erenkrantz
[EMAIL PROTECTED] ls -l access_log -rw-r--r-- 1 jerenkrantz other2147484642 Dec 26 14:49 access_log Yes, I'm a slacker and I don't rotate my logs. This introduced an interesting problem though. When the server got rebooted, httpd refused to start since the file was over the 2GB limit: