pan-users
[Top][All Lists]
Advanced

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

Re: [Pan-users] Re: NZB files directly from firefox or other browser or


From: Per Hedeland
Subject: Re: [Pan-users] Re: NZB files directly from firefox or other browser or file manager.
Date: Tue, 13 Oct 2009 23:21:55 +0200 (CEST)

Joe Zeff <address@hidden> wrote:
>
>I have, several times, caused problems by accidentally starting Pan 
>twice without realizing it.  (Mostly, the program gets tangled up about 
>which articles have been read until I edit the newsrec file.)  I'd like 
>to suggest that Pan create a file, pan.lok, in its own directory and 
>remove it again on exit so that you can't have two copies using the same 
>configuration at the same time.

Sounds like a good idea.

>  (For Linux, at least, you can open the 
>file, creating it, delete it and then close it at exit because the 
>delete will be delayed until after it's closed.  That way, if Pan 
>crashes, the lock still gets removed.

This is standard Unix filesystem semantics. Exploiting this
functionality is counter-productive if the file is supposed to be a lock
file, though. (As far as access via the filesystem is concerned, the
file ceases to exist at the point of the unlink(2).)

--Per Hedeland




reply via email to

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