Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: signals and read blocking - EINTR In-Reply-To: From Samuel Thibault at "Nov 1, 2005 12:48:03 pm" From: Jim Easton To: Samuel Thibault Date: Wed, 2 Nov 2005 01:10:13 -0700 (MST) CC: Jim Easton , cygwin AT cygwin DOT com Message-Id: X-IsSubscribed: yes Hi Samuel Thibald wrote: > Mmm, I had a look at posix, at it says "The state of these flags is > not specified for signal()." So that you indeed need to explicitely > unset the flag, else the behavior is implementation-dependant (BSD sets > SA_RESTART and clears SA_RESETHAND for instance). > > Alternatively, siginterrupt() might be useful, but sigaction is > preferred. > > Regards, > Samuel Yes, I will keep that in mind. There are a couple of other flags that are set on the other architectures which I haven't investigated yet (read; I don't know what they do), but it's working now on Cygwin, Solaris, SGI, AIX and Linux. (The sun4s need a little tweeking) Thank you and Chris Faylor for your help - much appreciated. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/