1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Added support for locking using flock(2) (now default)

Fixes #26
Old-style UUCP-lockdir code is maintained.
Preferred locking style is selected via the Makefile
This commit is contained in:
Nick Patavalis
2015-08-07 08:21:09 +03:00
parent 208bb118e6
commit 110c15ea3c
2 changed files with 23 additions and 6 deletions

View File

@ -16,9 +16,15 @@ CPPFLAGS += -DTTY_Q_SZ=$(TTY_Q_SZ)
## Comment this out to disable high-baudrate support
CPPFLAGS += -DHIGH_BAUD
## Normally you should NOT enable both: UUCP-style and flock(2)
## locking.
## Comment this out to disable locking with flock
CPPFLAGS += -DUSE_FLOCK
## Comment these out to disable UUCP-style lockdirs
UUCP_LOCK_DIR=/var/lock
CPPFLAGS += -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\"
#UUCP_LOCK_DIR=/var/lock
#CPPFLAGS += -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\"
## Comment these out to disable "linenoise"-library support
SEND_RECEIVE_HISTFILE = .picocom_send_receive