vicc: catch ctrl-c via KeyboardInterrupt

... and ignore EINT in recv as it may be triggered for various other reasons

fixes https://github.com/frankmorgner/vsmartcard/issues/95
This commit is contained in:
Frank Morgner
2017-04-03 22:14:02 +02:00
parent 3abf29dbda
commit 377774fd65
2 changed files with 19 additions and 10 deletions

View File

@@ -157,4 +157,7 @@ vicc = VirtualICC(args.datasetfile, args.type, hostname, args.port,
ef_cardsecurity=ef_cardsecurity_data, ca_key=ca_key_data, cvca=cvca,
disable_checks=args.disable_ta_checks, esign_ca_cert=esign_ca_cert,
esign_cert=esign_cert, logginglevel=logginglevel)
vicc.run()
try:
vicc.run()
except KeyboardInterrupt:
pass