delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/09/01/15:56:30

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 1 Sep 2000 23:55:24 +0400
From: Egor Duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: Egor Duda <cygwin-developers AT sources DOT redhat DOT com>
Organization: DEO
X-Priority: 3 (Normal)
Message-ID: <1975989842.20000901235524@logos-m.ru>
To: cygwin developers <cygwin-developers AT sources DOT redhat DOT com>
Subject: sync with children problem
Mime-Version: 1.0

Hi!

  i've  encountered  a  problem  with program doing fork-exec-waitpid,
namely  cvs  working  via  ssh.  the worst in situation is that when i
everything  run under strace, problem vanishes (and i guess this means
we've  got  some  race  here).  maybe child process exits too soon, or
something  like  that.  snapshot  taken  from  sourceware  ( DLL build
2000-08-25-23:55-EST)   shows  the  same  behavior.  currently,  as  a
workaround, i've applied this patch (that looks more like dirty hack),
just  to  make  things  work,  but i think that such change can likely
broke something else. any comments?

Index: sigproc.cc
===================================================================
RCS file: /home/duda_admin/cvs-mirror/src/winsup/cygwin/sigproc.cc,v
retrieving revision 1.32
diff -c -1 -r1.32 sigproc.cc
*** sigproc.cc  2000/08/26 03:48:37     1.32
--- sigproc.cc  2000/09/01 18:57:27
***************
*** 215,217 ****
        sigproc_printf ("it's mine, process_state %x", p->process_state);
!       return proc_can_be_signalled (p);
      }
--- 215,217 ----
        sigproc_printf ("it's mine, process_state %x", p->process_state);
!       return 1; // proc_can_be_signalled (p);
      }

Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19


- Raw text -


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