delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/12/04/21:37:06

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-Id: <199912050236.UAA01287@mercury.xraylith.wisc.edu>
To: Chris Faylor <cgf AT cygnus DOT com>
cc: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: (patch) winsup noncygwin mess cleanup
In-Reply-To: Your message of "Sat, 04 Dec 1999 21:19:29 EST."
<19991204211929 DOT A10029 AT cygnus DOT com>
Date: Sat, 04 Dec 1999 20:36:44 -0600
From: Mumit Khan <khan AT nanotech DOT wisc DOT edu>

Chris Faylor <cgf AT cygnus DOT com> writes:
> 
> That's right.  There is no way to inherit fds in a non-cygwin app since
> the fds are passed via a "reserved" block in CreateProcess.  I've been
> contemplating changing that.
> 
> From what I see in your patch, I think you've done the only thing that
> makes sense.

That was the last resort. I had been sitting on this patch long enough
that I decided to punt the issue and submit. Should've asked earlier!

The problem is the following: if I run say a Java JNI from a shell that
is non-cygwin (eg., DOS shell), stdout/err work just fine; if I run it
from Cygwin shell, nothing shows up since somewhere in there, the std
fd's are closed. It's not that big of a problem in my book, but I'd like
to find if there's a way to fix it eventually, if at all possible.

Re signal handling, I do have the change, but it has some "emotional"
problems I need to track down. I'll get to it after these changes are
in a snapshot.

A naive question -- how do I turn on tracing without running strace?
In my particular case, strace invokes different behaviour since it's
a mingw application, and I'd prefer not to change the source everytime
I need to do some serious debugging.

Regards,
Mumit

- Raw text -


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