Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Philippe Torche <philippe.torche@jle.ch>
Subject: Forks/spawn test using ~latest~ CVS source 20031217 10:00AM (GMT+1)
Date: Fri, 19 Dec 2003 00:04:02 +0100
Organization: JLE informatique
Lines: 43
Message-ID: <brtbp2$9pd$1@sea.gmane.org>
Reply-To: philippe.torche@jle.ch
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031208

I've tested the CVS source 20031217 10:00AM (GMT+1) to see if fork/spawn 
works on Multi CPU (4 Xeon) with Windows 2003 Server (see old message 
about it in the mailing list). Unfortunatly It doesn't !

Below a test script, use it by running run_t.sh. After some time (< 1 
minute) one or more of the 5 sub-shell stop. This batch works perfectly 
using a single P4 cpu on Windows XP !

Thanks in advance, Philippe.

PS 1 : 4-5th attempt to send a mail to cygwin@cygwin.com using three 
different mail account, gmane newgroup ! Anti-spam ? :(
PS 2 : Vital for me that this works before end of the month !

#### Scripts
cat <<'EOF' > t.sh
#!/bin/bash
i=0
while true
do
     A=$(basename /bin/sh)
     last_exec=$?
     i=$(($i+1))
     echo "Instance $1, loop $i, status $last_exec"
     if [ $last_exec -ne 0 ]; then
       echo "!!!! ERROR !!!!"
     fi
done
EOF
chmod a+rwx t.sh

cat <<'EOF' > run_t.sh
#!/bin/bash
t.sh 1 &
t.sh 2 &
t.sh 3 &
t.sh 4 &
t.sh 5 &
wait
EOF
chmod a+rwx run_t.sh

./run_t.sh


--
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/

