Re: How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-03 Thread Daniel Risacher
te >> $f 2> /dev/null"); > > I am using the worker processing model.  Does it work for you (or anyone > else) without causing periodic child process segmentation faults? > > > On Tue, 2012-01-03 at 16:29 -0500, Daniel Risacher wrote: >> It's been a while sinc

Re: How to run shell command from response handler? (Apache2 child segmentation fault)

2012-01-03 Thread Daniel Risacher
It's been a while since I looked at doing this, but IIRC it's fairly dependent on the processing model that Apache is using. Are you mpm_prefork, or mpm_worker? Also, I found it was important to redirect stderr to /dev/null: sub play { system "/usr/bin/xmms -t 2> /dev/null"; } On Tue, Jan

Re: How do you use mod_perl for your web application?

2011-06-17 Thread Daniel Risacher
I had 8-9 apps running as custom mp2 modules (not really in any framework.) I did a few things in Catalyst, but it never really lit my candle. Perlbal for reverse proxy. I used Postgres a lot, but eventually realized that sqlite3 was good enough for what I was doing most of the time. Of late, I

Re: file descriptor for client socket?

2007-01-30 Thread Daniel Risacher
can to prevent apache from using the client socket again $r->assbackwards(1); $r->connection->keepalive(&Apache2::Const::CONN_CLOSE); return &Apache2::Const::DONE; } 1; -- On Fri, 19 Jan 2007 10:34:25 +0100, Torsten Foertsch <[EMAIL PROTECTED]> wrote

Re: file descriptor for client socket?

2007-01-18 Thread Daniel Risacher
>From within a mod_perl request handler, fileno(STDOUT) returns -1, which is >the same thing I got from $r->FILENO. Any other ideas? On Wed, 17 Jan 2007 17:26:56 -0500, Robert Landrum <[EMAIL PROTECTED]> wrote: > Daniel Risacher wrote: >> Is it possible to get the

file descriptor for client socket?

2007-01-17 Thread Daniel Risacher
Is it possible to get the file descriptor for the client socket from the RequestRec? I.e. something like $r->FILENO (which doesn't seem to work) or perhaps $r->connection->client_socket->os_sock (os_sock exists in the APR structure in C, but there doesn't seem to be a perl accessor method.) R

Re: bug report in mod_perl 1.99_13 installation

2004-03-09 Thread Daniel Risacher
I get a clean build from CVS now. -- "The blues are multicolored." -- Dave Lambert Daniel Risacher [EMAIL PROTECTED] -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiqu

Re: bug report in mod_perl 1.99_13 installation

2004-03-09 Thread Daniel Risacher
hooks/cleanup.t 21 50.00% 2 t/hooks/cleanup2.t 21 50.00% 1 t/modules/include.t 62 33.33% 4-5 t/modules/include2.t43 75.00% 1 3-4 6 tests skipped. -- "The blues are multicolored." -- Dave