Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Philippe Torche 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: Reply-To: philippe DOT torche AT jle DOT ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT 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 AT cygwin DOT 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/