delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/23/16:59:50

X-Spam-Check-By: sourceware.org
Date: Wed, 23 Nov 2005 13:59:37 -0800
From: Lester Ingber <ingber AT ingber DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: P.S. cygheap base mismatch
Message-ID: <20051123215937.GA6799@ingber.com>
Mime-Version: 1.0
User-Agent: Mutt/1.5.10i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

I have use tcsh scripts run from a Cygwin window to start X-windows.  I had
been using lines like:
#!/bintcsh -f
xterm -j -sb -bg white -fg darkblue -cr green -ms magenta -bd red -geometry 80x84-0+0 -name right >>& /tmp/log.xwin &
With cygwin1-20051117.dll I was now also getting additional DOS windows.

I found that by using
xterm -j -sb -bg white -fg darkblue -cr green -ms magenta -bd red -geometry 80x84-0+0 -name right &
the DOS windows no longer pop up.

I also isolated the popen() problem somewhat.  Those popen()'s used
for file I/O still seem fine when using `gcc -mno-cygwin`, but the
popen()'s that fail are like:
 sprintf (utc_comm, "%s", "date -u +%Y%m%d");
  if ((ptr_comm = popen (utc_comm, "r")) == NULL) {
      // ...
  }
  pclose (ptr_comm);
I guess the use of `date` is like trying to write to STDOUT which
presents some problems when using `gcc -mno-cygwin`.

Thanks.

Lester

On Tue, Nov 22, 2005 at 10:43:48PM -0500, Christopher Faylor wrote:
: Date: Tue, 22 Nov 2005 22:43:48 -0500
: From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
: To: cygwin AT cygwin DOT com
: Subject: Re: P.S. cygheap base mismatch
: Reply-To: cygwin AT cygwin DOT com
: 
: On Tue, Nov 22, 2005 at 07:27:03PM -0800, Lester Ingber wrote:
: >Yes, I just put in cygwin1-20051117.dll.
: >
: >The cygheap problem does not seem to be present, and I'm able to start
: >xterm windows.  A quirk though:  Each xterm window also brings up a
: >separate DOS window, and thexterm window is killed if I kill the DOS
: >window?
: 
: How are you starting the xterms?  Via run?  From a shortcut?  From
: another xterm?
: 
: cgf


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