utsaslab / crashmonkey

CrashMonkey: tools for testing file-system reliability (OSDI 18)
Apache License 2.0
193 stars 31 forks source link

Exit gracefully if ctrl-c is received #52

Open ashmrtn opened 7 years ago

ashmrtn commented 7 years ago

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 commented 5 years ago

May I be assigned this issue? @ashmrtn

vijay03 commented 5 years ago

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

vijay03 commented 5 years ago

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 commented 5 years ago

Sure thanks @vijay03