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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Horton

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

    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($Pid SendTo, 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.
  • Erwin Moller

    #2
    Re: Using posix_kill and PHP doesn't understand SIGUSR1!!??

    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($Pid SendTo, 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?



    Regards,
    Erwin Moller

    Comment

    Working...