Re: pthread question - should this program run - does on Linux

2007-03-20 Thread Brian Keener
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

RE: pthread question - should this program run - does on Linux

2007-03-20 Thread Dave Korn
On 20 March 2007 17:08, Brian Keener wrote: Brian Keener wrote: Ahhh, found it. CYGWIN=binmode ntsec nostrip_title title tty AFAIUI, the rule-of-thumb is that the 'tty' setting should only be used in xterm/rxvt or other native cygwin terminal, and never in yer bog-standard dos-shell

Re: pthread question - should this program run - does on Linux

2007-03-20 Thread Christopher Faylor
On Tue, Mar 20, 2007 at 05:17:42PM -, Dave Korn wrote: On 20 March 2007 17:08, Brian Keener wrote: Brian Keener wrote: Ahhh, found it. CYGWIN=binmode ntsec nostrip_title title tty AFAIUI, the rule-of-thumb is that the 'tty' setting should only be used in xterm/rxvt or other native

RE: pthread question - should this program run - does on Linux

2007-03-20 Thread Dave Korn
On 20 March 2007 17:41, Christopher Faylor wrote: On Tue, Mar 20, 2007 at 05:17:42PM -, Dave Korn wrote: On 20 March 2007 17:08, Brian Keener wrote: Brian Keener wrote: Ahhh, found it. CYGWIN=binmode ntsec nostrip_title title tty AFAIUI, the rule-of-thumb is that [incorrect

Re: pthread question - should this program run - does on Linux

2007-03-19 Thread Brian Keener
Alex wrote: I got this (cygwin): $ ./a Starting main now Creating thread 0 0: hello world! Creating thread 1 1: hello world! Creating thread 2 2: hello world! Creating thread 3 3: hello world! Creating thread 4 4: hello world! then the program exit Ahhh, found it. I

Re: pthread question - should this program run - does on Linux

2007-03-17 Thread Brian Keener
Thanks Alex, Something in my install then. 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/

pthread question - should this program run - does on Linux

2007-03-16 Thread Brian Keener
I have been trying to get a grasp on some pthread usage starting with a couple simple programs. I found this one and tried on Cygwin and didn't get what I expected so I tried in Linux and it worked there. I know I have seen a lot on the archives about thread usage and that some things do not

Re: pthread question - should this program run - does on Linux

2007-03-16 Thread alex
I got this (cygwin): $ ./a Starting main now Creating thread 0 0: hello world! Creating thread 1 1: hello world! Creating thread 2 2: hello world! Creating thread 3 3: hello world! Creating thread 4 4: hello world! then the program exit On Fri, Mar 16, 2007 at 02:14:40PM -0400, Brian