-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Exit prompt confirmation #219
Conversation
SonyPradana
commented
Oct 11, 2023
•
edited
Loading
edited
- windows support
- unix (pcntl*) support
pcntl not full cover test, pr welcome if found bug in features |
*/ | ||
function exit_prompt($title, array $options = null): void | ||
{ | ||
$signal = defined('SIGINT') ? constant('SIGINT') : 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if no constant changes why not using fix parameters (in case 2).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure but will be change
$signal = defined('SIGINT') ? constant('SIGINT') : 2; | ||
$default = defined('SIG_DFL') ? constant('SIG_DFL') : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if no constant changes why not using fix parameters (in case 2 and 0).