nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] nmh should be more careful about when it unlinks draft


From: Ralph Corderoy
Subject: Re: [Nmh-workers] nmh should be more careful about when it unlinks draft files
Date: Wed, 04 Jan 2017 12:51:51 +0000

Hi Paul,

> the error it signals up-stack must tell its caller why it fails, so
> that its caller can then try the next possible filename (message
> number). only if it fails N times in a row (suggest 6 or 42, from the
> prisoner and douglas adams) should comp then fail.

That's a nice to have needing more effort...

> if we're not going to do this much, then adding O_EXCL will do very
> little good.

...but right now there will be a benefit to having comp make its single
attempt with O_EXCL;  explicit abandonment with an error message showing
the problem rather than silent trampling and a random winner.  And it's
a simpler change.

Doing O_EXCL doesn't preclude other strategies being on a wish list.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]