Thread View: news.software.readers
1 messages
1 total messages
Started by Ian G Batten
Tue, 11 Aug 1992 08:54
trn (presumably rn) locking
Author: Ian G Batten
Date: Tue, 11 Aug 1992 08:54
Date: Tue, 11 Aug 1992 08:54
19 lines
1322 bytes
1322 bytes
trn locks against multiple invocations of itself by writing the process id into a file. this allows it to detect stale locks (by seeing if the process is still present). the lock is written into the user's home directory. i have my home directory nfs mounted on several servers which i use interchangably from my x terminal. if i leave a copy of trn running in one window, forget about it and then start a copy on another server, it starts correctly because the pid on one machine is most likely not a valid pid on another. would it not be wise to write the hostname into the lock file and simply refuse to start at all if that is not the local host? unless anyone can think of a devasting reason why this is a bad idea, i shall implement it. ian
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads