delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <200211130051.gAD0pwx18838@p16.pub.ro> |
From: | Mihai Daniel Stanescu <mstanescu AT p16 DOT pub DOT ro> |
To: | <cygwin AT cygwin DOT com> |
Date: | Wed, 13 Nov 2002 02:52:03 +0200 |
Subject: | Terminating spawned cygwin programs from the starting application |
Mime-Version: | 1.0 |
X-RAVMilter-Version: | 8.3.3(snapshot 20020312) (compaq) |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id gAD0qCt28642 |
Hi I am kinda new in cygwin and i need some help. What i do now. I have a win32 application. In that i am launching using CreateProcess, ssh. Also i intercept stdin, stdout and stderr using pipes. What i want to do: At a certain point in time i want to terminate the ssh process i launched The problem: Now i am terminating the process using TerminateProcess. It seems that its not really a good idea. When i try to close the handle of the pipe for stderr with CloseHandle the application freezes, never comes back from that. It looks to me like its a deadlock inside or something. I also have a thread that listens when something is written in stderr and that freezes too in FileRead call. What other possible ways of terminating i have. I was thinking to emulate a CTRL+C but i don't know so much of cygwin internals. Thanks Best regards Mihai -- Mihai Daniel Stanescu, mstanescu AT p16 DOT pub DOT ro on 11/13/2002 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |