mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-02 13:51:45 +00:00
examples/utils: add nfc_exit() to signal traps
and one missing nfc_abort_command()
This commit is contained in:
@@ -58,8 +58,10 @@ static void stop_polling(int sig)
|
||||
(void) sig;
|
||||
if (pnd != NULL)
|
||||
nfc_abort_command(pnd);
|
||||
else
|
||||
else {
|
||||
nfc_exit(context);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user