projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: hardnested needs malloc.h, which on Darvin (Mac OS X) needs a path to.
[proxmark3-svn]
/
client
/
uart.c
diff --git
a/client/uart.c
b/client/uart.c
index 71cea1109d1e27ef191d871d8cde07f802eed36f..e538499bf6ea3a6bf933796a9ce4a58f37dac8dd 100644
(file)
--- a/
client/uart.c
+++ b/
client/uart.c
@@
-119,7
+119,12
@@
void uart_close(const serial_port sp) {
fl.l_start = 0;
fl.l_len = 0;
fl.l_pid = getpid();
fl.l_start = 0;
fl.l_len = 0;
fl.l_pid = getpid();
- fcntl(spu->fd, F_SETLK, &fl);
+
+ // Does the system allows us to place a lock on this file descriptor
+ int err = fcntl(spu->fd, F_SETLK, &fl);
+ if ( err == -1) {
+ //perror("fcntl");
+ }
close(spu->fd);
free(sp);
}
close(spu->fd);
free(sp);
}
Impressum
,
Datenschutz