From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7868 invoked by alias); 23 Dec 2014 11:09:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7856 invoked by uid 89); 23 Dec 2014 11:09:28 -0000 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 Received: from mail-vc0-f175.google.com (HELO mail-vc0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 23 Dec 2014 11:09:26 +0000 Received: by mail-vc0-f175.google.com with SMTP id hy10so2233946vcb.34 for ; Tue, 23 Dec 2014 03:09:24 -0800 (PST) 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) Received: by 10.52.7.134 with HTTP; Tue, 23 Dec 2014 03:09:24 -0800 (PST) Date: Tue, 23 Dec 2014 11:09:00 -0000 Message-ID: Subject: Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager From: - To: marco@gmail.com, cygwin@cygwin.com, Anr Daemon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-12/txt/msg00345.txt.bz2 >> 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=C3=B6e 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