Skip to content

Commit 571651d

Browse files
author
chris
committed
o Fix locking.
1 parent d4b30c5 commit 571651d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lispd_tuntap/lispd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int get_process_lock(int pid)
203203
fl.l_start = 0;
204204
fl.l_len = 1;
205205

206-
if ((fdlock = open(LISPD_LOCKFILE, O_WRONLY|O_CREAT|O_EXCL, 0666)) == -1) {
206+
if ((fdlock = open(LISPD_LOCKFILE, O_RDWR|O_CREAT, 0666)) == -1) {
207207
return FALSE;
208208
}
209209

lispd_tuntap/lispd_tuntap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ void tuntap_process_output_packet(void)
141141

142142
nread = read(tun_receive_fd, tun_receive_buf, TunReceiveSize);
143143

144-
log_msg(INFO, "Output packet first byte: 0x%x", tun_receive_buf[0]);
145144
ipversion = (tun_receive_buf[0] & 0xf0) >> 4;
146145
switch (ipversion) {
147146

0 commit comments

Comments
 (0)