public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: David Bolen <db3l@fitlinxx.com>
To: "'cygwin@sourceware.cygnus.com'" <cygwin@sourceware.cygnus.com>
Subject: RE: text / binary mounts (sorry)
Date: Fri, 02 Jun 2000 19:45:00 -0000	[thread overview]
Message-ID: <1DB8BA4BAC88D3118B2300508B5A552CD92556@mail.fitlinxx.com> (raw)

Chris Faylor [cgf@cygnus.com] writes:

> It only affects stdin/stdout behavior when the program is run from the
> Windows command shell.

Well, it also happens for me when a process is started up from an NT service
(that is not a Cygwin service) which has no bearing on a command shell, or
actually any NT application (even if while the application was started from
a shell, the process it is creating will have no interaction with that
shell)  (That might be synonymous with what you mean by "command shell" I'm
not sure).

> fork() is a cygwin function which produces an additional copy of a running
> program.  That means that the child has a a cygwin parent and so stdin
should
> be in the same state in the child as in the parent.

Oops, I think I mis-stated - I meant to say is started as a child process
(but my Unix-based brain optimized that phrase with "fork()").  I haven't
tested all cases, but the actual problems I was running into did involve a
parent process (not interactive) that was not Cygwin-based.

I do believe you are correct in the behavior under fork() which was actually
part of the confusing part when I tried to diagnose this originally (which
led to my first note to this list which led off onto a tangent on open
source :-)) - I had thought it was the internally forked child but it was
actually the original stdin/stdout .

-- David

/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l@fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

             reply	other threads:[~2000-06-02 19:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-02 19:45 David Bolen [this message]
2000-06-02 19:50 ` Chris Faylor
  -- strict thread matches above, loose matches on Subject: below --
2000-06-05  9:41 David Bolen
     [not found] <200006022142.OAA26463@cygnus.com>
2000-06-02 19:33 ` Chris Faylor
2000-06-02 14:42 Parker, Ron
2000-06-02 14:36 David Bolen
2000-06-02 19:33 ` Chris Faylor
     [not found] <200006022116.OAA23714@cygnus.com>
2000-06-02 14:29 ` Chris Faylor
2000-06-02 14:53   ` Norman Vine
2000-06-02 14:26 Parker, Ron
2000-06-02 14:16 Parker, Ron
     [not found] <200006021734.KAA06876@cygnus.com>
2000-06-02 11:28 ` Chris Faylor
2000-06-02 10:33 Parker, Ron
2000-06-02 10:26 Parker, Ron
2000-06-02 10:13 Earnie Boyd
2000-06-02 10:01 Parker, Ron
2000-06-02  6:35 Earnie Boyd
2000-06-02  9:02 ` Re[2]: " Egor Duda
2000-06-02 11:26   ` Chris Faylor
2000-06-02 11:50     ` Bob McGowan
2000-06-02 13:16       ` Chris Faylor
2000-06-02 14:03         ` Jeremy Sheeley
2000-06-02 14:05           ` Chris Faylor
2000-06-05  6:41     ` Jason Tishler
2000-06-05  8:48       ` Chris Faylor
2000-06-02  1:01 Matthew Lowther

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1DB8BA4BAC88D3118B2300508B5A552CD92556@mail.fitlinxx.com \
    --to=db3l@fitlinxx.com \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).