Using posix_kill and PHP doesn"t understand SIGUSR1!!??

Using posix_kill and PHP doesn"t understand SIGUSR1!!??

am 09.04.2008 11:38:35 von Rob Horton

Hi, I've only been using PHP for a short time so there may be a simple
solution which I haven't been able to spot yet.

here's the line in question:

posix_kill($PidSendTo, SIGUSR1);

produces the following error:

posix_kill() expects parameter 2 to be long, string given in Test.php
on line XX.

It seems that PHP is unable to understand any of the PCNTL signals
constants.

Any ideas?

Thanks.

Re: Using posix_kill and PHP doesn"t understand SIGUSR1!!??

am 09.04.2008 12:13:46 von Erwin Moller

Rob Horton schreef:
> Hi, I've only been using PHP for a short time so there may be a simple
> solution which I haven't been able to spot yet.
>
> here's the line in question:
>
> posix_kill($PidSendTo, SIGUSR1);
>
> produces the following error:
>
> posix_kill() expects parameter 2 to be long, string given in
> Test.php on line XX.
>
> It seems that PHP is unable to understand any of the PCNTL signals
> constants.
>
> Any ideas?
>
> Thanks.

Hi,

Not sure, but could pcntl_signal() help you out?

http://nl3.php.net/pcntl_signal

Regards,
Erwin Moller