This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Console anyone ?


On Sat, 24 May 2003, Alexander Gottwald wrote:

> Igor Pechtchanski wrote:
>
> > For those who are interested, I've created the (suitably edited) strace
> > output files for two commands:
> >
> >   1) bash -c "exec /usr/bin/X11/xterm -display localhost:0 >/dev/null 2>&1 &
> >   2) bash -c "exec /usr/bin/X11/xterm -display localhost:0 2>&1 >/dev/null &
> >
> > Both xterms then had the "net help" command run in them, followed by
> > "exit".
> >
> > The diffs between the two should be informative.  Unfortunately, I don't
> > have the knowledge of the code necessary to spot the significance of the
> > differences, and no time right now for the learning curve.  Hope this
> > helps someone else track this down.
>
> The difference between the two lines is
> 1) redirects stdout to /dev/null and stderr to stdout
> 2) redirects stderr to stdout and stdout to /dev/null (which also redirects
>     stderr to /dev/null)
>
> bye
>     ago

Alexander,

That's exactly the difference.  The thing is that in one case programs
like "net" pop up a new window for the output, and in the other they
don't.  I was hoping that these traces would help us make the necessary
changes to cygwin1.dll to avoid this problem.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]