[EMAIL PROTECTED]";
}
close $in;
}
I had to use this form of spawn_proc_prog to get something to wait on.
--
Best Regards,
Igor Shevchenko
On Saturday 12 March 2005 02:52, you wrote:
> Igor Shevchenko wrote:
> > Hi all,
> >
> > Some time ago we had a thread about starting long-running background
> > processes from mp2. I've found a race condition in our last solution. The
> > helper background sc
[EMAIL PROTECTED]";
}
close $in;
}
I had to use this form of spawn_proc_prog to get something to wait on.
--
Best Regards,
Igor Shevchenko
A small followup to this case.
Looks like mp2 or apache2 are killing background process, by PID; Probably in
a cleanup handler for the request. I had to add additional "return if fork()
> 0;" to the exec_helper.pl script to make bg processes survice.
--
Best Regards,
Igor Shevchenko
>Since it's a common mistake to use "exec" instead of "system",
>Perl warns you if there is a following statement which isn't
>"die", "warn", or "exit" (if "-w" is set - but you always do
>that).
--
Best Regards,
Igor Shevchenko
On Saturday 19 February 2005 18:44, you wrote:
> Igor Shevchenko wrote:
> > On Saturday 19 February 2005 03:06, Stas Bekman wrote:
> >>What about?
> >>$r->spawn_proc_prog
> >>http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html#C_spawn_proc_p
> >&
;+>>', '/path/to/apache/error_log';
open STDERR, '>&STDOUT';
exec ( @ARGV );
CORE::exit(0);
1;
--
Best Regards,
Igor Shevchenko
show any httpd process running,
"netstat -lp|grep http" shows ports 80 and 443, listening in a perl process
(my background script)
Because of this, apache fails to restart when any of background processes are
running. How do I close all file descriptors and sockets ?
(this is l