Welcome! Log In Create A New Profile

Advanced

PCNTL with FPM?

Posted by Sazmon Pai 
Sazmon Pai
PCNTL with FPM?
April 22, 2011 02:58PM
Hi, I'm wondering if there's a reason why PCNTL isn't available on the
FPM SAPI. Is it intentional? Can it be safely enabled?
grigori
Re: PCNTL with FPM?
April 26, 2011 06:04AM
Should there be a reason for the manual forking FPM children,
changing priorities, or handling signals?
I can't figure out any.

I would not want to predict how the forked process will behave with
the fcgi-connection he got open from the parent.
PCNTL is for the command-line, I belive.

On 22 апр, 21:10, Sazmon Pai <sazpai...@7chan.org> wrote:
> Hi, I'm wondering if there's a reason why PCNTL isn't available on the
> FPM SAPI. Is it intentional? Can it be safely enabled?
陈智宏
Re: PCNTL with FPM?
April 26, 2011 06:12AM
Because there is master process in FPM who manage the process.
2 or more master process will be ridiculous. That's why in FPM disable the
fork.


On Tue, Apr 26, 2011 at 6:02 PM, grigori <grigori.kochanov@gmail.com> wrote:

> Should there be a reason for the manual forking FPM children,
> changing priorities, or handling signals?
> I can't figure out any.
>
> I would not want to predict how the forked process will behave with
> the fcgi-connection he got open from the parent.
> PCNTL is for the command-line, I belive.
>
> On 22 апр, 21:10, Sazmon Pai <sazpai...@7chan.org> wrote:
> > Hi, I'm wondering if there's a reason why PCNTL isn't available on the
> > FPM SAPI. Is it intentional? Can it be safely enabled?
Antony Dovgal
Re: PCNTL with FPM?
April 26, 2011 07:10AM
On 04/26/2011 02:11 PM, 陈智宏 wrote:
> Because there is master process in FPM who manage the process.
> 2 or more master process will be ridiculous. That's why in FPM disable the fork.

PCNTL isn't available?
Disable the fork?

What are you guys talking about?
PCNTL is just an extension, you can enable it just as any other extension
when you compile your PHP binary, whatever the SAPI is.

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Sazmon Pai
Re: PCNTL with FPM?
April 26, 2011 09:00AM
Spawn-fcgi uses a master process, and works perfectly fine with forking.
The only other SAPI I believe that disables PCNTL is mod_php which is
because php lives as a thread inside the Apache process. This isn't
really the same case.

On 4/26/2011 6:11 AM, 陈智宏 wrote:
> Because there is master process in FPM who manage the process.
> 2 or more master process will be ridiculous. That's why in FPM disable
> the fork.
>
>
> On Tue, Apr 26, 2011 at 6:02 PM, grigori <grigori.kochanov@gmail.com
> <mailto:grigori.kochanov@gmail.com>> wrote:
>
> Should there be a reason for the manual forking FPM children,
> changing priorities, or handling signals?
> I can't figure out any.
>
> I would not want to predict how the forked process will behave with
> the fcgi-connection he got open from the parent.
> PCNTL is for the command-line, I belive.
>
> On 22 апр, 21:10, Sazmon Pai <sazpai...@7chan.org
> <mailto:sazpai...@7chan.org>> wrote:
> > Hi, I'm wondering if there's a reason why PCNTL isn't available
> on the
> > FPM SAPI. Is it intentional? Can it be safely enabled?
>
>
Sazmon Pai
Re: PCNTL with FPM?
April 26, 2011 09:02AM
The extension gets disabled depending on the SAPI. The mod_php SAPI, for
example, doesn't detect it at all.

On 4/26/2011 7:07 AM, Antony Dovgal wrote:
> On 04/26/2011 02:11 PM, 陈智宏 wrote:
>> Because there is master process in FPM who manage the process.
>> 2 or more master process will be ridiculous. That's why in FPM
>> disable the fork.
>
> PCNTL isn't available?
> Disable the fork?
>
> What are you guys talking about?
> PCNTL is just an extension, you can enable it just as any other extension
> when you compile your PHP binary, whatever the SAPI is.
>
陈智宏
Re: PCNTL with FPM?
April 26, 2011 09:20AM
It's different, Cause FPM will conflict with fork action.
In any SAPI other than CLI, fork will be troubles.
In the new process,It destroy the normal processing life-cycle .

On Tue, Apr 26, 2011 at 7:07 PM, Antony Dovgal <tony@daylessday.org> wrote:

> On 04/26/2011 02:11 PM, 陈智宏 wrote:
>
>> Because there is master process in FPM who manage the process.
>> 2 or more master process will be ridiculous. That's why in FPM disable the
>> fork.
>>
>
> PCNTL isn't available?
> Disable the fork?
>
> What are you guys talking about?
> PCNTL is just an extension, you can enable it just as any other extension
> when you compile your PHP binary, whatever the SAPI is.
>
> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>
grigori
Re: PCNTL with FPM?
April 27, 2011 05:20AM
>
> What are you guys talking about?
> PCNTL is just an extension, you can enable it just as any other extension
> when you compile your PHP binary, whatever the SAPI is.

just a few words on why you don't want to shoot in the foot
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready