www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/20/12:08:28

X-Spam-Check-By: sourceware.org
Date: Tue, 20 Mar 2007 13:07:43 -0400
To: cygwin AT cygwin DOT 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
From: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>
In-Reply-To: <VA.00001557.003b9c12@thesoftwaresource.com>
References: <VA DOT 00001550 DOT 00852aa3 AT thesoftwaresource DOT com> <20070317001633 DOT GA19379 AT zoosmart DOT us> <VA DOT 00001557 DOT 003b9c12 AT thesoftwaresource DOT com>
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


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