climate icon indicating copy to clipboard operation
climate copied to clipboard

Implement pcntl_signal()

Open pluc opened this issue 7 years ago • 1 comments

pcntl_signal is used to handle signals, it would be useful to give CLImate the ability to do something when, for example CTRL+C (SIGTERM) is pressed.

pluc avatar Jan 12 '18 10:01 pluc

@pluc Shouldn't this be handled in your app code? Sort of like:

pcntl_signal(SIGTERM, function ($signo) use ($climate) {
   // $climate->info()...
});

mikegioia avatar Jul 23 '18 02:07 mikegioia