public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Inetd & stdout partly solved (was inetd vs. cl)
       [not found] <v5hf16isod.fsf@P...>
@ 2001-03-12 10:36 ` Rui-Tao Dong
  2001-03-12 11:34   ` Charles Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Rui-Tao Dong @ 2001-03-12 10:36 UTC (permalink / raw)
  To: cygwin

I think I know what the problem is, although I haven't figure out the
right place to fix it yet.

I re-built XEmacs (w/ X support) and it produced a little utility
called runemacs.  If I call runemacs to start XEmacs from a telnet
session w/ inetd running as service, all stdout gets redirected to my
emacs buffer.  If I start XEmacs directly, some stdout goes to a DOS
window.   I checked the runemacs source and found the following

        .......................

  memset (&start, 0, sizeof (start));
  start.cb = sizeof (start);
  start.dwFlags = STARTF_USESHOWWINDOW;
  start.wShowWindow = SW_HIDE;

  sec_attrs.nLength = sizeof (sec_attrs);
  sec_attrs.lpSecurityDescriptor = NULL;
  sec_attrs.bInheritHandle = FALSE;

  if (CreateProcess (NULL, new_cmdline, &sec_attrs, NULL, TRUE, 0,
		     NULL, NULL, &start, &child))
        ................

Apparently, the wShowWindow flags was set in a CYGWIN window, but not
from inetd started as a service.

-- 
Regards,

	Dr. Rui-Tao Dong		
	Sr. Scientist			Newport Corporation
	rdong@newport.com		1791 Deere Avenue
	(949)253-1679(Voice)		Irvine, CA 92606 USA
	(949)253-1240(Fax)		http://www.newport.com




>>>>> "Rui-Tao" == Rui-Tao Dong <rdong@n...> writes:

 Rui-Tao> I stuck with MSVC compiler from time to time.  I normally
 Rui-Tao> export a makefile from VC and call nmake from (X)Emacs,
 Rui-Tao> which then call cl and friends to do the compilation.

 Rui-Tao> If I start inetd from a cygwin window and telnet into the
 Rui-Tao> box, cl output to my compilation buffer.  If I start inetd
 Rui-Tao> as a service and telnet in, cl outputs to a DOS window.

 Rui-Tao> I tried to play with tty and notty setting w/o any success.

 Rui-Tao> I am using CYGWIN 1.18 and inetutils-1.3.2.

 Rui-Tao> BTW, openssh-2.3.0p1 doesn't like inetd (even with the -i
 Rui-Tao> switch).  I'll try a more recent version.


 Rui-Tao> -- Regards,

 Rui-Tao> 	Dr. Rui-Tao Dong Sr. Scientist Newport Corporation
 Rui-Tao> rdong@n...  1791 Deere Avenue (949)253-1679(Voice) Irvine,
 Rui-Tao> CA 92606 USA (949)253-1240(Fax) http://www.newport.com


 Rui-Tao> -- Want to unsubscribe from this list?  Check out:
 Rui-Tao> http://cygwin.com/ml/#unsubscribe-simple



-- 

-- 

Regards,

			Rui-Tao (x31679)




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inetd & stdout partly solved (was inetd vs. cl)
  2001-03-12 10:36 ` Inetd & stdout partly solved (was inetd vs. cl) Rui-Tao Dong
@ 2001-03-12 11:34   ` Charles Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2001-03-12 11:34 UTC (permalink / raw)
  To: Rui-Tao Dong; +Cc: cygwin

Rui-Tao Dong wrote:
> 
> I think I know what the problem is, although I haven't figure out the
> right place to fix it yet.
> 
> I re-built XEmacs (w/ X support) and it produced a little utility
> called runemacs.  If I call runemacs to start XEmacs from a telnet
> session w/ inetd running as service, all stdout gets redirected to my
> emacs buffer.  If I start XEmacs directly, some stdout goes to a DOS
> window.   I checked the runemacs source and found the following
> 
[code snipped]
> 
> Apparently, the wShowWindow flags was set in a CYGWIN window, but not
> from inetd started as a service.

I wasn't aware that runemacs (aka run.exe) could be used for this
purpose.  Cool.  FWIW, "run" contains almost identical code (*) and is
available standalone from
http://www.neuro.gatech.edu/users/cwilson/cygutils/unversioned/run/

--Chuck

(*) I took the runemacs code from XEmacs(21.0ish) and added lots of
stuff.  Then, I *think*, my version was absorbed back into
XEmacs(21.1ish).  Then the whole runemacs thing was dropped in the 21.2
series because 21.2cygwinXEmacs builds as a GUI (no console).

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-12 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <v5hf16isod.fsf@P...>
2001-03-12 10:36 ` Inetd & stdout partly solved (was inetd vs. cl) Rui-Tao Dong
2001-03-12 11:34   ` Charles Wilson

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