posix_kill

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Send a signal to a process
<?php posix_kill(int $process_id, int $signal): bool
<?php         echo "PHP-FPM seems to be running already. This might be because Lambda stopped the bootstrap process but didn't leave us an opportunity to stop PHP-FPM (did Lambda timeout?). Stopping PHP-FPM now to restart from a blank slate.\n";




        $result = posix_kill($pid, self::SIGTERM);

        if ($result === false) {

            echo "PHP-FPM's PID file contained a PID that doesn't exist, assuming PHP-FPM isn't running.\n";

            unlink(self::SOCKET);