Server : LiteSpeed
System : Linux server64.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : nimalaab ( 3358)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/alt/php53/usr/share/pear/test/Process/Symfony/Component/Process/Tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/alt/php53/usr/share/pear/test/Process/Symfony/Component/Process/Tests/SignalListener.php
<?php

// required for signal handling
declare(ticks = 1);

pcntl_signal(SIGUSR1, function () {echo "Caught SIGUSR1"; exit;});

$n=0;

// ticks require activity to work - sleep(4); does not work
while ($n < 400) {
    usleep(10000);
    $n++;
}

return;

F1le Man4ger