Skip to content

Instantly share code, notes, and snippets.

@youknowriad
Created September 10, 2012 10:20
Show Gist options
  • Save youknowriad/3690142 to your computer and use it in GitHub Desktop.
Save youknowriad/3690142 to your computer and use it in GitHub Desktop.
Callback for process signals in PHP
<?php
function callback() {
echo 'callback ...';
}
pcntl_signal(SIGTERM, 'callback');
pcntl_signal(SIGINT, 'callback');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment