+
+ read_keys() unless ($keys_last_read == -M ($keysfile));
+
+ READLOOP: while (<$fh>)
+ {
+ unless (/UID/)
+ {
+ close($fh);
+ system("/usr/bin/killall -9 mifare-read");
+ send_to_fifo("log restarting mifare-read after invalid output");
+ last READLOOP;
+ }