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