From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andries Brouwer Date: Mon, 15 Nov 2004 17:21:23 +0000 Subject: Re: [util-linux] flock utility program? Message-Id: <20041115172123.GI12802@apps.cwi.nl> List-Id: References: <200411090322.iA93MtV11836@freya.yggdrasil.com> In-Reply-To: <200411090322.iA93MtV11836@freya.yggdrasil.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Nov 08, 2004 at 07:22:55PM -0800, Adam J. Richter wrote: > So, if there is not standard utility for shell scripts to > do flock, here is a simple utility that allows one to do > "flock [--shared | --non-blocking] cmd arg arg...". I would like to get > it into util-linux. I would be happy to write a manual page > for it. A page is welcome. First bug: fd = open(argv[0], O_RDONLY); if (fd < 0) { perror(argv[1]); exit(3); } is good for confusing error messages. Andries aeb@cwi.nl ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel