src/CLI.php
public static function cleanupPidfile($handle, $pidfile)
    {
        flock($handle, LOCK_UN);
        @unlink($pidfile);
        $logger = \Plop\Plop::getInstance();
        $logger->debug(
            'Removed lock on pidfile (%(pidfile)s)',
            array('pidfile' => $pidfile)
        );
    }
public static function cleanupPidfile($handle, $pidfile)
    {
        flock($handle, LOCK_UN);
        @unlink($pidfile);
        $logger = \Plop\Plop::getInstance();
        $logger->debug(
            'Removed lock on pidfile (%(pidfile)s)',
            array('pidfile' => $pidfile)
        );
    }
public static function cleanupPidfile ( $ handle , $ pidfile ) { flock ( $ handle , LOCK_UN ) ; @ unlink ( $ pidfile ) ; $ logger = \ Plop \ Plop :: getInstance ( ) ; $ logger -> debug ( 'Removed lock on pidfile (%(pidfile)s)' , array ( 'pidfile' => $ pidfile ) ) ; }
Called after the bot has finished its execution
to perform cleanup tasks.

\param resource $handle
Open file handle on the pidfile.

\param string $pidfile
Name of the pidfile.

\return
This method does not return anything.
Called after the bot has finished its execution to perform cleanup tasks .