delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/03/20:27:01

From: jra AT axon DOT cygnus DOT com (Jeremy Allison)
Subject: Re: ITIMER Implimentation???
3 Dec 1996 20:27:01 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199612040141.RAA02026.cygnus.gnu-win32@cygnus.com>
Original-To: Alessandro Forin <sandrof AT microsoft DOT com>
Original-cc: "'chris AT calligrafix DOT co DOT uk'" <chris AT calligrafix DOT co DOT uk>,
"'Jeremy Allison'" <jra AT cygnus DOT com>,
"'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>
In-reply-to: Your message of "Tue, 03 Dec 1996 16:54:25 PST."
<c=US%a=_%p=msft%l=RED-77-MSG-961204005425Z-66268 AT INET-02-IMC DOT microsoft DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi Alessandro,

	I know that NT takes signals on a separate thread,
the problem is that UNIX code expects that synchronous I/O
will be interrupted when a signal occurs. Don't tell me it's
bad, that's just the way UNIX code is written, and that's the
way people using Cygwin32 will want it to work :-). Cygwin32
is not currently MT-safe (that's another bunch of code :-).

This is not possible on NT currently without me re-writing
all blocking I/O in Cygwin32 to use asynchronous I/O under
the covers and waiting on the handle and a separate event
which the signal thread sets as 'signalled'. This is a lot
of work, hence my statement.

Cheers,

Jeremy.
jra AT cygnus DOT com

PS. Please don't say things like 'Signals are bad for you.' in that
definitive 'take your medicine' sort of way. I know they can
be a pain - I occasionally use goto's as well - you just have
to know *when* to use them. What I object to is not being given
the choice. It's only a small step from 'Signals are bad for you.'
to 'Resistance is futile, you will be assimilated.' (which
given your email address... :-) :-).
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019