Hi there,
I've ported lockf(1) from Freebsd, made some style changes to conform
to style(9) and added an option to write the lock holder pid in the
lockfile (-p) option.
It's a single file with 246 lines.
I'll port/write the manpage if you think the port may be
accepted. This is the first port
}
}
else {/* child */
if(oclose)
close(fd);
return execvp(*argv, argv);
}
return 0;
}d
__dead void
usage(void)
{
errx(1, "usage: flock [-sexu] [-no] [-r file] [-w seconds] -c command");
/* NOTREACHED */
}
==end flock.c==
--
Christiano Farina HAESBAERT