Archived
1
0
Fork 0
Commit graph

11 commits

Author SHA1 Message Date
Henrik Hautakoski
697d512ea6 lockfile: Remove force parameter from hold_lock()
If user wants to 'force' a lock, he/she will have to remove the file
manually. some wierd race conditions may happen if different processes optains the
same lock at any given time (thats why lockfile is implemented in the first place)
So lockfile API should not in any circumstances directly provide a way to force taking a lock.
2013-10-17 15:57:42 +02:00
Henrik Hautakoski
c731173b49 lockfile.c: in hold_lock(), Should report 'filename' instead of 'lock->name' if file is locked 2013-10-17 15:52:03 +02:00
Henrik Hautakoski
61cad77a0c lockfile.c: Adding mechanism to take a lock of a file after a given amount on time. even if the file is locked. 2013-10-17 15:47:10 +02:00
Henrik Hautakoski
ad4ac41b13 lockfile.c: missing stdlib.h for atexit() 2011-09-24 13:53:18 +02:00
Henrik Hautakoski
611409c777 lockfile: expose locked()
usefull to have this macro in the interface so other modules using lockfiles
can check if a certain lock is active.
2011-09-24 13:03:22 +02:00
Henrik Hautakoski
90505d8e5b remove new-line from error() calls. 2011-09-21 17:19:12 +02:00
Henrik Hautakoski
4c8c92b7f6 lockfile.c: unlink locks on signal 2011-09-21 17:19:10 +02:00
Henrik Hautakoski
a2f2e58353 Make the other modules use error.c 2011-09-21 17:19:10 +02:00
Henrik Hautakoski
b02ff8863e lockfile: release locks on exit 2011-09-21 17:19:10 +02:00
Henrik Hautakoski
bb5963dbf6 License with GPLv2 2011-09-21 17:19:09 +02:00
Henrik Hautakoski
5a5a3d33e4 Adding lockfile.c
moving code from compile.c under an api so it can be reused.
2011-09-21 17:19:09 +02:00