1 diff -u -r ../newsboat-2.10.2/src/fslock.cpp ./src/fslock.cpp
2 --- ../newsboat-2.10.2/src/fslock.cpp 2017-12-25 18:49:35.000000000 +0100
3 +++ ./src/fslock.cpp 2017-12-26 23:47:20.520356104 +0100
18 // then we lock it (returns immediately if locking is not possible)
20 + if (flock(fd, LOCK_EX) == 0) {
22 if (lockf(fd, F_TLOCK, 0) == 0) {
24 LOG(level::DEBUG, "FSLock: locked `%s', writing PID...", new_lock_filepath);
25 std::string pidtext = std::to_string(getpid());
26 // locking successful -> truncate file and write own PID into it