Skip to content
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

[7.0] Fix stop scan #414

Merged
merged 5 commits into from
Oct 24, 2019
Merged

Conversation

jjnicola
Copy link
Member

No description provided.

It only uses SIGUSR1 for stopping the current scan.
SIGUSR2 was used before when the scanner was a daemon and and it was able to
run multiple task.
As handle_stop_all_scans_signal() was removed, a check is done within
handle_scan_stop_signal() to differentiate the parent process and the child process.
The scanner delete the kb if the scan was stopped. Otherwise,
during a normal host kb deletion just removes the connections.

When the host scan process ends, set the "finishes" flag in redis
before removing the host from the list. This avoid to set the end_time,
after the kb was already clean out by the ospd-openvas process.
Don't delete the kb in the stop scan. This clean out must be done by ospd-openvas.
Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems legit. Can't really validate the content.

@jjnicola jjnicola changed the title Fix stop scan 7 [7.0] Fix stop scan Oct 24, 2019
Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to be same as master version.

@jjnicola jjnicola merged commit a215a1d into greenbone:openvas-7.0 Oct 24, 2019
@jjnicola jjnicola deleted the fix-stop-scan-7 branch October 25, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants