28c28
< __FBSDID("$FreeBSD: head/lib/libutil/pidfile.c 171705 2007-08-03 06:32:45Z des $");
---
> __FBSDID("$FreeBSD: head/lib/libutil/pidfile.c 171706 2007-08-03 09:20:28Z des $");
34,35d33
< #include <errno.h>
< #include <fcntl.h>
38a37
> #include <fcntl.h>
40c39,40
<
---
> #include <err.h>
> #include <errno.h>
210d209
< struct flock lock;
213,217d211
< lock.l_type = F_UNLCK;
< lock.l_start = 0;
< lock.l_whence = SEEK_SET;
< lock.l_len = 0;
<
226c220
< if (fcntl(pfh->pf_fd, F_SETLK, &lock) == -1) {
---
> if (flock(pfh->pf_fd, LOCK_UN) == -1) {
< __FBSDID("$FreeBSD: head/lib/libutil/pidfile.c 171705 2007-08-03 06:32:45Z des $");
---
> __FBSDID("$FreeBSD: head/lib/libutil/pidfile.c 171706 2007-08-03 09:20:28Z des $");
34,35d33
< #include <errno.h>
< #include <fcntl.h>
38a37
> #include <fcntl.h>
40c39,40
<
---
> #include <err.h>
> #include <errno.h>
210d209
< struct flock lock;
213,217d211
< lock.l_type = F_UNLCK;
< lock.l_start = 0;
< lock.l_whence = SEEK_SET;
< lock.l_len = 0;
<
226c220
< if (fcntl(pfh->pf_fd, F_SETLK, &lock) == -1) {
---
> if (flock(pfh->pf_fd, LOCK_UN) == -1) {