Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement pcntl_signal() #118

Open
pluc opened this issue Jan 12, 2018 · 1 comment
Open

Implement pcntl_signal() #118

pluc opened this issue Jan 12, 2018 · 1 comment

Comments

@pluc
Copy link

pluc commented Jan 12, 2018

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.

@mikegioia
Copy link

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

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants