From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21649 invoked by alias); 23 Dec 2014 02:34:09 -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 21570 invoked by uid 89); 23 Dec 2014 02:34:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 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-f180.google.com Received: from mail-vc0-f180.google.com (HELO mail-vc0-f180.google.com) (209.85.220.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 23 Dec 2014 02:33:59 +0000 Received: by mail-vc0-f180.google.com with SMTP id im6so2025107vcb.25 for ; Mon, 22 Dec 2014 18:33:57 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.220.74.197 with SMTP id v5mr9093557vcj.27.1419302037141; Mon, 22 Dec 2014 18:33:57 -0800 (PST) Received: by 10.52.7.134 with HTTP; Mon, 22 Dec 2014 18:33:57 -0800 (PST) Date: Tue, 23 Dec 2014 02:34:00 -0000 Message-ID: Subject: Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager From: - To: cygwin@cygwin.com, anrdaemon@yandex.ru Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-12/txt/msg00342.txt.bz2 Hi, >> Any idea how to solve (get the "canceled" exit code? Remember: The >> script continues like a normal finish of the command) > What do you mean by "canceled" exit code, pretty please? oh, any exitcode <> 0 would be nice. Sending sigkill on debian gives a 137. The point is, I rely on having a successfully executed command, if exitcode is 0. In this case command is terminated, left garbage and did not do its job and I go on like everything would be fine. How should error checking care about such a condition / state? Any ideas? And by the way, is such a condition in pure GNU/Linux producible? Sigkill is quite brute force exit isn't it? Thanks -- 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