X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; q=dns; s=default; b=M4v 9pOL2KkbqdhcgH/oUeKw1IMbPn5cp7bjUe3fIp+B212qaRSdj1CH1Nu4P9jTieu7 KRiiq1WOyQh7ShQgacLK5gTHm+5jk+nNuMf+IUNBZ/2twcQohQL/fniXu54mzV3t +zdeI15x7M+7xbUbNxMOhu5Wrn3cw36awsmGicOk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; s=default; bh=iH0113v6W GqKtI03YcDB57zv42g=; b=SoyUpZ3/8c5pYL5Z9f0tI2jQ2ezhzxB2H4v7OBDUu wsGZMWsmoWpxow3IwF0B1Br8jMN5fd7utkOPN3pn2i9Z4K2Iq3A7eYWmnS5+q5MT ugj0se356n3xYiqFq9buMhlcay/1V2LFHexa2osX3sfu1plouy/NvGI904dETuYf jA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-vc0-f175.google.com MIME-Version: 1.0 X-Received: by 10.52.242.199 with SMTP id ws7mr8121785vdc.75.1419332964128; Tue, 23 Dec 2014 03:09:24 -0800 (PST) Date: Tue, 23 Dec 2014 12:09:24 +0100 Message-ID: Subject: Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager From: - To: marco AT gmail DOT com, cygwin AT cygwin DOT com, Anr Daemon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sBNB9hPb027462 >> Using Taskmanager is brute force as cygwin dll can not act and correctly manage the exitcode Hi, thanks, but I do not agree. One element of the script was killed, not the hoöe script. It should be more robust. What I do now is: Read stdout of the program (rsync) and only if I got the right footer of rsync I rely on exitcode 0. That is insane. Is it possible to kill the process of a script element in GNU and having a returncode of 0 and a continuing script? If yes we can't use returncodes at all anymore in shell scripts? Thanks lopiuh -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple