🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Matthew Haley Tue, 08 Feb 2000 00:00
slrn 0.9.6.2 - quits if ^C pressed while fetching a Thread
#57836
Author: Matthew Haley
Date: Tue, 08 Feb 2000 00:00
15 lines
1126 bytes
I'm using the Win32 version of slnrn 0.9.6.2.
While fetching viewing a thread and using ESC-1-ESC-p to fetch
the entire thread I realized it was allread on screen and pressed 
^C to cancel which promptly quit slrn.

Is this normal?

-- 
------------- Matthew Haley ----------------
What's all this I hear about Xnews?
http://xnews.3dnews.net
http://www.users.uswest.net/~mrh99/Xnews.htm

Re: slrn 0.9.6.2 - quits if ^C pressed while fetching a Thread
#59094
Author: Matthew Haley
Date: Fri, 10 Mar 2000 00:00
18 lines
1262 bytes
On 10 Mar 2000 03:45:18 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>
>On Windows *everything* is normal.
>Seriously, though - I don't think
>slrn can catch a CTRL-C break...

Thanks for the reply, however, it doesn't matter anymore... I've moved to Linux.


Matt

-- 
Petition for Linux Drivers: http://www.libranet.com/petition.html
slrn			  : http://www.slrn.org
Xnews (Win32)		  : http://xnews.3dnews.net
Xnews Installer (Win32)	  : http://www.users.uswest.net/~mrh99/Xnews.htm

Re: slrn 0.9.6.2 - quits if ^C pressed while fetching a Thread
#59101
Author: Sven Guckes
Date: Fri, 10 Mar 2000 00:00
14 lines
1130 bytes
* Matthew Haley <mrh99@uswest.net>:
> I'm using the Win32 version of slnrn 0.9.6.2.
> While fetching viewing a thread and using ESC-1-ESC-p
> to fetch the entire thread I realized it was allread on
> screen and pressed ^C to cancel which promptly quit slrn.
> Is this normal?

On Windows *everything* is normal.
Seriously, though - I don't think
slrn can catch a CTRL-C break...

Sven

Re: slrn 0.9.6.2 - quits if ^C pressed while fetching a Thread
#59110
Author: David Gerard
Date: Fri, 10 Mar 2000 00:00
78 lines
3519 bytes
On 10 Mar 2000 03:45:18 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
:* Matthew Haley <mrh99@uswest.net>:

:> I'm using the Win32 version of slnrn 0.9.6.2.
:> While fetching viewing a thread and using ESC-1-ESC-p
:> to fetch the entire thread I realized it was allread on
:> screen and pressed ^C to cancel which promptly quit slrn.
:> Is this normal?

:On Windows *everything* is normal.
:Seriously, though - I don't think
:slrn can catch a CTRL-C break...


It can, it's just that the 0.9.6.2 code doesn't contain the Windows
handler.

For an example, here's a recent JED post on the subject, re: slrnpull dying
instantly on a Ctrl-C instead of cleaning up first ...

(And I'll try these myself on slrnpull when I get a Windows compiler -
unless I get mulinux behaving first ;-)



From: davis@space.mit.edu (John E. Davis)
Newsgroups: news.software.readers
Subject: Re: slrnpull win32 problem
Message-ID: <slrn8bapso.ual.davis@aluche.mit.edu>
Date: 24 Feb 2000 17:17:14 GMT

On 24 Feb 2000 15:08:14 GMT, David Gerard <fun@thingy.apana.org.au>
wrote:
>Hmmm. Does what I'm asking for (an interrupt that says 'drop this
>connection, clean up after yourself and terminate) even exist in slrnpull?
>Or is there only the Ctrl-C, which says 'terminate RIGHT NOW'?

On Unix platforms, Ctrl-C activates a signal handler which causes the
proper cleanup activities to take place.  I believe that the win32 API
contains a function called `SetConsoleCtrlHandler' that may be used
to emulate this behavior.  That is, add
#v+
static BOOL WINAPI kbd_int_handler (DWORD type)
{
   BOOL ret = TRUE;

   switch (type)
     {
      case CTRL_C_EVENT:                     /* ctrl+c hit */
      case CTRL_BREAK_EVENT:                 /* ctrl+break hit */
      case CTRL_CLOSE_EVENT:                 /* window closing */
      case CTRL_LOGOFF_EVENT:                /* user logoff */
      case CTRL_SHUTDOWN_EVENT:              /* system shutdown */
      default:
        Terminate_Slrn_Pull_Requested = 1;
	(void) handle_interrupts ();
     }
   return TRUE;
}
#v-
to the appropriate place in slrnpull.c and then put the line
#v+
   SetConsoleCtrlHandler (kbd_int_handler, TRUE);
#v-
int the `init_signals' function:

You might try making these changes to slrnpull.c and test whether or
not they cause the appropriate actions to take place.

--John



-- 
http://xenu.netizen.com.au/                       http://www.caube.org.au/
Let's take a ride, run with the dogs tonight, in suburbia.

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