This is the mail archive of the
mailing list for the Cygwin project.
Inetd & stdout partly solved (was inetd vs. cl)
- To: cygwin at cygwin dot com
- Subject: Inetd & stdout partly solved (was inetd vs. cl)
- From: Rui-Tao Dong <rdong at newport dot com>
- Date: 12 Mar 2001 10:30:47 -0800
- References: <v5hf16isod.fsf@P...>
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.
Dr. Rui-Tao Dong
Sr. Scientist Newport Corporation
firstname.lastname@example.org 1791 Deere Avenue
(949)253-1679(Voice) Irvine, CA 92606 USA
>>>>> "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:
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple