bouyer
7b066791c8
Remove references to University of California from my copyright notices.
2003-10-05 17:48:49 +00:00
bouyer
d6242d4312
We can't keep a reference to the value returned by svc_getrpccaller().
...
Instead malloc() some memory and copy the sockaddr returned there.
Fix a bug where after a blocked lock gets granted, the grant message would
be sent to the wrong machine (or possibly to a completely bogus address).
While there, add a NULL check for the return value of another malloc().
2003-06-19 11:13:06 +00:00
yamt
f9cc84c69d
getlock: detect duplicated locks slightly correctly.
...
XXX how should we do for byte range lock?
2003-03-16 09:05:56 +00:00
yamt
acc9d6c0f9
for lock/unlock requests, log svid as well as client name.
2003-03-16 06:55:47 +00:00
yamt
3f4a2b19c2
fix a typo in the previous.
2003-03-14 14:10:00 +00:00
yamt
c5c265a7aa
use strlcpy instead of strncpy.
2003-03-14 14:08:44 +00:00
yamt
f947a8c4c1
use LIST_FOREACH macro.
2003-03-14 14:03:00 +00:00
yamt
44f53bece1
for fork'ed children, use _exit instead of exit.
2003-03-14 13:53:08 +00:00
yamt
3337a32246
- protect from pid reusing.
...
- fix a null dereference on the error.
2003-03-14 13:46:23 +00:00
simonb
276fd1665c
The Double-Semi-Colon Police.
2003-01-20 05:29:53 +00:00
wiz
5db23d2c5d
enouth -> enough.
2002-07-26 01:00:39 +00:00
wiz
4b20971f01
Spell acquire with a 'c'.
2002-07-10 23:16:32 +00:00
oster
4a785b3509
Fix a memory leak: when unlocking make sure we release the memory associated
...
with the lock begin removed!
Reviewed by thorpej.
2001-10-23 19:54:53 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
wiz
14dbdf5518
Negative exit code cleanup: Replace exit(-x) with exit(x).
...
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
enami
6bc7e18094
Don't try to deallocate an object pointed by NULL pointer. Instead,
...
deallocate the right one.
2000-11-21 03:47:41 +00:00
thorpej
8521dd166a
Clean up some include paths.
2000-08-12 18:08:43 +00:00
itojun
4941865cd4
setproctitle fix. from openbsd
2000-07-05 22:21:15 +00:00
fvdl
7704425071
Convert to tirpc interface, and to be af-independent.
2000-06-09 14:00:52 +00:00
bouyer
227ed98327
Implement file locking in lockd. All the stuff is done in userland, using
...
fhopen() and flock(). This means that if you kill lockd, all locks will
be relased (but you're supposed to kill statd at the same time, so
remote hosts will know it and re-establish the lock).
Tested against solaris 2.7 and linux 2.2.14 clients.
Shared lock are not handled efficiently, they're serialised in lockd when they
could be granted.
2000-06-07 14:34:40 +00:00