Thread View: news.software.readers
5 messages
5 total messages
Started by Jon Ribbens
Mon, 29 Apr 1996 00:00
AAARGH! Slrn trashes my newsrc again
Author: Jon Ribbens
Date: Mon, 29 Apr 1996 00:00
Date: Mon, 29 Apr 1996 00:00
23 lines
1218 bytes
1218 bytes
This is really quite annoying. Slrn is perfect apart from this rather severe bug... I am using slrn over a dial-up link. My idiot housemate picks up the phone, and the connection dies. I re-connect, and kill the slrn process using 'kill <pid>'. Usually, this works fine. Today, however, it decides to delete my .newsrc. (Or maybe make it zero length, one of the two.) It's now going to take me rather a long while to rebuild it :(. Ho hum Cheers Jon ____ \ // Jon Ribbens // esveb@csv.warwick.ac.uk // \// http://www.csv.warwick.ac.uk/~esveb/ //
Re: AAARGH! Slrn trashes my newsrc again
Author: John E. Davis
Date: Mon, 29 Apr 1996 00:00
Date: Mon, 29 Apr 1996 00:00
50 lines
2321 bytes
2321 bytes
On 29 Apr 1996 18:37:02 GMT, Jon Ribbens <esveb@csv.warwick.ac.uk>
wrote:
: I am using slrn over a dial-up link. My idiot housemate picks up the
: phone, and the connection dies. I re-connect, and kill the slrn
: process using 'kill <pid>'. Usually, this works fine. Today, however,
: it decides to delete my .newsrc. (Or maybe make it zero length, one of
: the two.) It's now going to take me rather a long while to rebuild
: it :(.
I cannot duplicate this behavior. What system are you running slrn on? What
is your shell?
slrn catches SIGTERM and SIGHUP and saves the newsrc file. In fact, I just
tested it again and it seems to be working:
1. I started slrn in one xterm. From another I killed it via `kill
pid'. The newsrc file was saved.
2. Same as 1 except I used `kill -HUP pid'. The file was saved.
3. This time I killed the xterm out from under it. Again, slrn
correctly saved the newsrc file.
4. Since my shell is `tcsh', I started up `bash' before running slrn,
i.e.,
tcsh> bash
bash$ slrn
Then I killed bash from another window. Once again, the newsrc file
was properly saved.
These experiments were performed under Linux 1.3.79.
If you can, please repeat my experiments. If the behavior that you are
seeing can be duplicated, then we can find out what is wrong.
Until the problem can be resolved, use:
set no_backups 0
in your .slrnrc file.
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Re: AAARGH! Slrn trashes my newsrc again
Author: Jon Ribbens
Date: Tue, 30 Apr 1996 00:00
Date: Tue, 30 Apr 1996 00:00
33 lines
1620 bytes
1620 bytes
John E. Davis <davis@space.mit.edu> wrote: > I cannot duplicate this behavior. What system are you running slrn on? What > is your shell? holly>uname -a SunOS holly 5.4 Generic_101945-37 sun4m sparc holly>bash -version GNU bash, version 1.14.4(1) > slrn catches SIGTERM and SIGHUP and saves the newsrc file. In fact, I just > tested it again and it seems to be working: Indeed, *most* of the time it works fine. The exact sequence of events was: kill <bash-pid>. wait for a while, ps-gx still shows both the bash and slrn processes running. kill <slrn-pid>. ps -gx shows bash process gone, slrn process running on tty '?', another ps -gx shows both processes gone. > set no_backups 0 Umm, what will this actually do? ;-) Cheers Jon ____ \ // Jon Ribbens // esveb@csv.warwick.ac.uk // \// http://www.csv.warwick.ac.uk/~esveb/ //
Re: AAARGH! Slrn trashes my newsrc again
Author: Jon Ribbens
Date: Wed, 01 May 1996 00:00
Date: Wed, 01 May 1996 00:00
33 lines
1840 bytes
1840 bytes
John E. Davis <davis@space.mit.edu> wrote: > When your are disconnected, should a SIGHUP be sent to your login shell to > tell it to ``hangup''? At least that is what happens on my login shell > (tcsh). Why is bash ignoring this? <shrug> No idea. UNIX computers seem to be terrible at detecting when people have disconnected. > : > set no_backups 0 > : > : Umm, what will this actually do? ;-) > > When slrn writes the .newsrc file and no_backups is set to 0, it will rename > the old file to .newsrc~. That way, if something happens to your .newsrc > file, you can use the previous version. This variable is initially set to > zero. I already had this set, upon further inspection. It's no good unless slrn checks to see that the .newsrc it is overwriting the .newsrc~ with is okay. After my .newsrc had been trashed, .newsrc~ had been trashed too. Cheers Jon ____ \ // Jon Ribbens // esveb@csv.warwick.ac.uk // \// http://www.csv.warwick.ac.uk/~esveb/ //
Re: AAARGH! Slrn trashes my newsrc again
Author: John E. Davis
Date: Wed, 01 May 1996 00:00
Date: Wed, 01 May 1996 00:00
29 lines
1782 bytes
1782 bytes
On 30 Apr 1996 13:24:42 GMT, Jon Ribbens <esveb@csv.warwick.ac.uk> wrote: : Indeed, *most* of the time it works fine. The exact sequence of events : was: kill <bash-pid>. wait for a while, ps-gx still shows both the bash : and slrn processes running. kill <slrn-pid>. ps -gx shows bash process : gone, slrn process running on tty '?', another ps -gx shows both processes : gone. When your are disconnected, should a SIGHUP be sent to your login shell to tell it to ``hangup''? At least that is what happens on my login shell (tcsh). Why is bash ignoring this? : : > set no_backups 0 : : Umm, what will this actually do? ;-) When slrn writes the .newsrc file and no_backups is set to 0, it will rename the old file to .newsrc~. That way, if something happens to your .newsrc file, you can use the previous version. This variable is initially set to zero. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
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