🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #58402

Re: slrnpull win32 problem

#58402
From: jwk
Date: Wed, 23 Feb 2000 00:00
40 lines
2270 bytes
On 23 Feb 2000 16:09:53 GMT, John E. Davis
<davis@space.mit.edu> wrote:
>On 23 Feb 2000 14:32:00 GMT, David Gerard <fun@thingy.apana.org.au>
>wrote:
>>Is there anything I can do about this? Can a future version trap the first
>>Ctrl-C and clean up properly, and take a *second* Ctrl-C as die-right-now?
>>Do these questions make sense in this context?
>
>I do not know enough about win32 to answer these questions.  Perhaps
>someone more knowlegable abount win32 and the winsock API will step in
>here and indicate how one can interrupt a network read from a console
>mode program.  On Unix this is handled by setting SIGINT to interrupt
>system calls.
>
>--John

It depends on how the win32 version is compiled. There are two
incarnations of the gcc-compiler under win32.

mingw32 is lean and simple, and does not do any signals.
cygwin32 is not so lean, but it does handle signals. It comes with
complete compatibility libraries for unix-programs, and has been used
for compiling for example the 'smbclient' program from the samba-suite
under win32.

YMMV, IIRC and all that, of course.

But IMHO, if you use cygwin to compile it, it should be able to trap the
^C first one way and then another.

Good luck,
Jurriaan

-- 
Spock: "Logic, logic, logic...  Logic is the beginning of wisdom,
Valeris, not  the end."
"STVI:TUC", Stardate 9522.6
Linux 2.3.46 SMP up 1:19 5 users load av: 0.20 0.17 0.10

Technical Details
Message-ID: <slrn8b8cq6.666._hate_spam_thunder7@middle.of.nowhere>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <890r10$ufn$1@thingy.apana.org.au> <slrn8b81if.q7n.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8b8cq6.666._hate_spam_thunder7@middle.of.nowhere>
Subject: Re: slrnpull win32 problem
Date: Wed, 23 Feb 2000 00:00:00 +0000
From: _hate_spam_thunder7@xs4all.nl (jwk)
References: <890r10$ufn$1@thingy.apana.org.au> <slrn8b81if.q7n.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 588967744
X-Complaints-To: abuse@xs4all.nl
X-Trace: news1.xs4all.nl 951335738 25110 194.109.14.47 (23 Feb 2000 19:55:38 GMT)
Organization: XS4ALL Internet BV
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: thunder7@xs4all.nl
NNTP-Posting-Date: 23 Feb 2000 19:55:38 GMT
Newsgroups: news.software.readers