Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com To: cygwin AT cygwin DOT com Subject: Inetd & stdout partly solved (was inetd vs. cl) References: From: Rui-Tao Dong In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Canyonlands) Date: 12 Mar 2001 10:30:47 -0800 Message-ID: Lines: 77 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 AT newport DOT 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 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 AT 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