Dag-Erling Smørgrav
062044ebbe
Back out previous commit until I figure out why my regression test fails.
...
Approved by: re (kensmith)
2007-08-03 09:20:28 +00:00
Dag-Erling Smørgrav
7eb198c642
Use fcntl(2)-style locks instead of less-portable flock(2)-style locks.
...
Approved by: re (kensmith)
2007-08-03 06:32:45 +00:00
Dag-Erling Smørgrav
b31d5b56ec
strlcpy() may be faster than snprintf(), but it is less portable, and this
...
is not performance critical code anyway. Also, avoid using strlen() to
obtain information which we already have.
MFC after: 3 weeks
2007-05-11 11:10:05 +00:00
Dag-Erling Smørgrav
3884dc6768
Use flopen(3).
...
MFC after: 3 weeks
2007-05-10 14:54:53 +00:00
Brian Somers
25b5a928f7
Remove some unused variables
2006-06-23 01:42:03 +00:00
John-Mark Gurney
4d5e876be3
use pwrite to always write at the begining of the file.. If multiple calls
...
to pidfile_write happen, the pidfile will have nul characters prepended
due to the cached file descriptor offset...
Reviewed by: scottl
MFC after: 3 days
2006-04-11 23:10:02 +00:00
Pawel Jakub Dawidek
412fa8f114
Add a family of functions for reliable pidfiles handling.
...
Idea from: jmg
Discussed on: arch@
2005-08-24 17:21:38 +00:00