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 From: Jim Easton To: cygwin AT cygwin DOT com Date: Tue, 1 Nov 2005 02:40:00 -0700 (MST) CC: Jim Easton Message-Id: X-IsSubscribed: yes Hi, Christopher Faylor wrote: > On Mon, Oct 31, 2005 at 08:49:30PM -0700, Jim Easton wrote: > >I'm wondering what am I missing? Is there a flag in sigaction > >or something else that I could be setting? > > Yes. SA_RESTART is the flag. and then Samuel Thibault wrote: > No: he wants to be _interrupted_. SA_RESTART is used for _not_ being > interrupted, i.e. the system restarts the system call itself. Thank you both for your help. It's quite true that I do want to be interrupted and SA_RESTART is to prevent it. However it never occurred to me on linux and cygwin the flag would be defaulted set. Things started to work much better when I deliberately unset the flag. It seems to be working quite nicely on cygwin now but I'm now having some trouble with the "saved" value of the timer which I haven't sorted out yet. I don't know that it's not my bug. Thanks for the prod. 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/