All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andries Brouwer <Andries.Brouwer@cwi.nl>
To: linux-hotplug@vger.kernel.org
Subject: Re: [util-linux] flock utility program?
Date: Mon, 15 Nov 2004 17:21:23 +0000	[thread overview]
Message-ID: <20041115172123.GI12802@apps.cwi.nl> (raw)
In-Reply-To: <200411090322.iA93MtV11836@freya.yggdrasil.com>

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

  parent reply	other threads:[~2004-11-15 17:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-08 12:11 [util-linux] flock utility program? Adam J. Richter
2004-11-08 12:20 ` Marco d'Itri
2004-11-08 14:36 ` Adam J. Richter
2004-11-08 14:48 ` Adam J. Richter
2004-11-15 17:21 ` Andries Brouwer [this message]
2004-11-16  3:32 ` Adam J. Richter
2004-11-16  7:34 ` Adam J. Richter
2004-11-16  7:38 ` Adam J. Richter
2004-11-16 15:24 ` Andries Brouwer
2004-11-16 15:32 ` Andries Brouwer
2004-11-16 15:33 ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041115172123.GI12802@apps.cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.