delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/21/01:04:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B311636.816811CB@unidui.uni-duisburg.de>
Date: Wed, 20 Jun 2001 23:31:34 +0200
From: Holger Vogt <holger DOT vogt AT uni-duisburg DOT de>
Reply-To: holger DOT vogt AT uni-duisburg DOT de
X-Mailer: Mozilla 4.73 [de]C-CCK-MCD CSO 2.0 (Win98; U)
X-Accept-Language: de,en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: fork() stops application 2

Hi,

another problem with fork to report:

I am compiling MAGIC under CYGWIN. MAGIC forks off a helper process
after establishing two pipes to comunicate with it. This "helper"
process is the way to ensure that X11 is able to run its event-driven
protocol (through calls to XNextEvent) while MAGIC runs its
interrupt-driven protocol (through calls to select()).  Both are
infinite (blocking) loops and must execute in parallel.

On Win98 this fork() takes a few ten seconds, on NT4 it is faster.

Later a second fork is required, e.g. for calling less to show help
information or for calling a simulator process. Again firstly there are
two pipes created, then fork() is called. This fork() call hangs up
MAGIC on Windows98, the whole OS freezes for a few minutes. All memory
seems to be used up, swapping to hard disk occurs. Later this blocking
disappers, but MAGIC still hangs. Under NT4 freezing and swapping occurs
during a shorter period, later on MAGIC continues.

Reading http://sources.redhat.com/ml/cygwin/2001-06/msg00256.html I
tried cygwin1-20010619.dll.  The kk test case now is o.k. (only tested
on Win98), also the first MAGIC fork is faster. The second freezes
however is still there.

I will try to create another test case, but maybe there is already some
info available.

Btw xterm (in xwin) crashes on cygwin1-20010619.dll.


Holger Vogt


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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