X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9965e0d1f8f56637072093b06a4dab28f8de5df0..ad5bc8cc8c0a6573d6b2c7bc58bf94f7ab66ad4c:/client/uart.c diff --git a/client/uart.c b/client/uart.c index 5aefcf76..e538499b 100644 --- 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(); + + // 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); }