X-Spam-Check-By: sourceware.org
Date: Tue, 20 Mar 2007 13:07:43 -0400
To: cygwin@cygwin.com
Subject: Re: pthread question - should this program run - does on Linux
X-Mailer: Virtual Access Open Source http://www.virtual-access.org/
Message-Id: <VA.0000155a.004b45b6@thesoftwaresource.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
From: Brian Keener <bkeenerReMoVeAnTiSpAm@thesoftwaresource.com>
In-Reply-To: <VA.00001557.003b9c12@thesoftwaresource.com>
References: <VA.00001550.00852aa3@thesoftwaresource.com> <20070317001633.GA19379@zoosmart.us> <VA.00001557.003b9c12@thesoftwaresource.com>
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Brian Keener wrote:
> Ahhh,
> 
> found it.  I get the same thing Alex does if I change my startup for Cygwin.  
> Force of habit from Unix machine I like to see the login prompt when I start 
> Cygwin.  So I have my cygwin.bat set to use the login program as shown here:
<snip>
> So question - is this a result of using the Start command or the fact I am 
> using the start command with the login program.  Any ideas.

Yes I found it but it is neither of my suppositions as to the Start command or the 
login program.  Turns out it is my CYGWIN setting in my Cygwin.bat file.  This 
post is to simply clear this thread for future seekers.

Turns out my CYGWIN variable has always been set to:

CYGWIN=binmode ntsec nostrip_title title tty

and I just never thought about it.  I like seeing the tty0 and tty1 and so on as 
opposed to console.  What I discovered was that if I leave the tty setting on 
CYGWIN then in bash my mythread_simple program has problems.  Leave my cygwin.bat 
and my start commands alone and simply remove the tty from CYGWIN :

CYGWIN=binmode ntsec nostrip_title title

and my mythread_simple works as expected.

Problem solved - thanks Alex for confirming it should run.

bk




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

