PHP Classes

File: vendor/symfony/symfony/src/Symfony/Component/Process/Tests/SignalListener.php

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Component/Process/Tests/SignalListener.php   Download  
File: vendor/symfony/symfony/src/Symfony/Component/Process/Tests/SignalListener.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 396 bytes
 

Contents

Class file image Download
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

pcntl_signal(SIGUSR1, function () {echo 'SIGUSR1'; exit;});

echo
'Caught ';

$n = 0;

while (
$n++ < 400) {
   
usleep(10000);
   
pcntl_signal_dispatch();
}