nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] Truncated Email.


From: Ken Hornstein
Subject: Re: [Nmh-workers] Truncated Email.
Date: Sun, 06 Mar 2016 21:28:01 -0500

>And there's that first "truncate" close releasing the lock gained on the
>first open.

Alright, stepping back from the gigantic mess that is fcntl() and looking
at the core problem .... can anyone think of a reason that creat() was used
in preference to ftruncate() way back when?  I see it was that way in
mh-6.8.5, but that also used ftruncate() in another file so it's not like
that interface hasn't existed forever.

I think just using ftruncate() would solve this problem, right?  Ralph,
could you give this a try?

--Ken



reply via email to

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