delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/05/07/22:54:25

From: newsham AT lava DOT net (Tim Newsham)
Subject: connect vs. signals
7 May 1998 22:54:25 -0700 :
Message-ID: <m0yXfa2-00119DC.cygnus.cygwin32.developers@malasada.lava.net>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

putting

      block_sig_dispatch();
and
      allow_sig_dispatch();

around the i_connect call in cygwin32_connect() fixes the signal/connect
race condition demonstrated in the test program I posted earlier.  This
should probably be added to the main sources.

There's also an i_connect call in socketpair() which probably needs
protecting as well, but I haven't bothered doing any tests on it.

I could provide diffs, but they're simple and also poluted with
other changes I've made.

Is there any place I can go to see what the current winsup files
look like?  Anonymous cvs would be great :)

Oh also an issue I mentioned before but haven't heard any feedback
on -- winsup has a regexp package in it.  This package provides
the old non-standard regexp interface.  Shouldn't it be replaced
with the standard posix regex interface (which implements the
same functions but has a slightly different interface)?

                                       Tim N.
   

- Raw text -


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