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

Exit gracefully if ctrl-c is received #52

Open
ashmrtn opened this issue Oct 2, 2017 · 4 comments
Open

Exit gracefully if ctrl-c is received #52

ashmrtn opened this issue Oct 2, 2017 · 4 comments

Comments

@ashmrtn
Copy link
Member

ashmrtn commented Oct 2, 2017

Users may want to exit CrashMonkey before the test harness has finished a complete run. They should be able to hit ctrl-c on the shell to kill it and expect CrashMonkey to clean up resources properly.

Most of this should just be catching the proper signal and then calling cleanup_harness() in the instance of the Tester object that harness/c_harness.cpp has.

Right now, I know that background communication sockets aren't cleaned up, kernel module(s) aren't removed, and file systems aren't unmounted (depending on when ctrl-c is hit).

@Puthranps
Copy link

May I be assigned this issue? @ashmrtn

@vijay03
Copy link
Member

vijay03 commented Mar 10, 2019

Sure, I don't think anybody is working on this at the moment. @ashmrtn @jayashreemohan29

@vijay03
Copy link
Member

vijay03 commented Mar 10, 2019

I can't assign the issue to @Puthranps since you are not a member of the team, but feel free to work on this and submit a PR.

@Puthranps
Copy link

Sure thanks @vijay03

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

No branches or pull requests

3 participants