crashmonkey icon indicating copy to clipboard operation
crashmonkey copied to clipboard

Exit gracefully if ctrl-c is received

Open ashmrtn opened this issue 8 years ago • 4 comments

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).

ashmrtn avatar Oct 02 '17 18:10 ashmrtn

May I be assigned this issue? @ashmrtn

Puthranps avatar Mar 10 '19 17:03 Puthranps

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

vijay03 avatar Mar 10 '19 17:03 vijay03

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.

vijay03 avatar Mar 10 '19 18:03 vijay03

Sure thanks @vijay03

Puthranps avatar Mar 10 '19 18:03 Puthranps