Subject: Forks/spawn test using ~latest~ CVS source 20031217 10:00AM (GMT+1)
From: Philippe Torche <[email-masked]>
To: [email-masked]
Date: Fri, 19 Dec 2003 00:04:02 +0100

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 [email-masked] 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/