aionnetwork / aion_miner

aion miner
57 stars 25 forks source link

Miner doesn't shutdown when hitting CTRL+C #12

Open asebak opened 6 years ago

asebak commented 6 years ago

Miner doesn't shutdown when hitting CTRL+C infinite amount of times.

synapsics-sergiu commented 6 years ago

It happened to me as well when I started the miner with no arguments. eg. ./aionminer

You have to start miner with some arguments as explained on the README page at the bottom.

Eg for GPU mining: ./aionminer -cd 0 -cv 1 -cb 64 -ct 64 -b

However your issue is still valid, I'll have a look into it.

synapsics-sergiu commented 6 years ago

It looks that my fixes on my pull request already fixed your issue as well. However I've just added a check for the number of arguments, if there are no arguments provided, it should show "help".

aion-Ross commented 6 years ago

Thanks @SergiuSynapsics I'll go through the pull request and have it merged by tomorrow.

In the mean time the miner can be closed using CTRL+Z when it gets into a non-responsive state. You'll need to manually remove the process after a CTRL+Z though; I've found the easiest way to remove is killall -9 aionminer