$48 GRAYBYTE WORDPRESS FILE MANAGER $91

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php53/usr/share/pear/test/Process/Symfony/Component/Process/Tests/

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

/**
 * Runs a PHP script that can be stopped only with a SIGKILL (9) signal for 3 seconds
 *
 * @args duration Run this script with a custom duration
 *
 * @example `php NonStopableProcess.php 42` will run the script for 42 seconds
 */

function handleSignal($signal)
{
    switch ($signal) {
        case SIGTERM:
            $name = 'SIGTERM';
            break;
        case SIGINT:
            $name = 'SIGINT';
            break;
        default:
            $name = $signal . ' (unknown)';
            break;
    }

    echo "received signal $name\n";
}

declare(ticks = 1);
pcntl_signal(SIGTERM, 'handleSignal');
pcntl_signal(SIGINT, 'handleSignal');

$duration = isset($argv[1]) ? (int) $argv[1] : 3;
$start = microtime(true);

while ($duration > (microtime(true) - $start)) {
    usleep(1000);
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
AbstractProcessTest.php
26.065 KB
18 Dec 2019 6.20 PM
root / root
0644
NonStopableProcess.php
0.793 KB
18 Dec 2019 6.20 PM
root / root
0644
PhpExecutableFinderTest.php
1.825 KB
18 Dec 2019 6.20 PM
root / root
0644
PhpProcessTest.php
0.657 KB
18 Dec 2019 6.20 PM
root / root
0644
PipeStdinInStdoutStdErrStreamSelect.php
1.506 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessBuilderTest.php
5.859 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessFailedExceptionTest.php
2.644 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessInSigchildEnvironment.php
0.442 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessUtilsTest.php
1.333 KB
18 Dec 2019 6.20 PM
root / root
0644
SigchildDisabledProcessTest.php
7.921 KB
18 Dec 2019 6.20 PM
root / root
0644
SigchildEnabledProcessTest.php
4.34 KB
18 Dec 2019 6.20 PM
root / root
0644
SignalListener.php
0.248 KB
18 Dec 2019 6.20 PM
root / root
0644
SimpleProcessTest.php
6.243 KB
18 Dec 2019 6.20 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF