-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove timeout from advanced security scan #444
Conversation
*/ | ||
private static cancelProcess(childProcess: exec.ChildProcess, checkCancel: () => void, reject: (reason?: any) => void): void { | ||
try { | ||
checkCancel(); |
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.
You already kill the process. Why running checkCancel?
Moreover - I think that running checkCancel without killing the process may end with a Zombie process.
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.
It assesses whether a cancellation has been requested. If a cancellation is detected, it proceeds to send a termination signal to the child process.
npm run format
for formatting the code before submitting the pull request.