From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71853: 29.4; `kill-compilation` does not kill compilation process on Windows Date: Sun, 30 Jun 2024 20:53:34 +0300 Message-ID: <86zfr2fhb5.fsf@gnu.org> References: <86plryhk91.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2771"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71853@debbugs.gnu.org To: Tze Chian Kam Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 30 19:54:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNykl-0000SO-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Jun 2024 19:54:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNykV-0003Ib-Pe; Sun, 30 Jun 2024 13:54:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNykU-0003IE-HA for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 13:54:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNykU-00012W-95 for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNykU-00063g-34 for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 13:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Jun 2024 17:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71853 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 71853-submit@debbugs.gnu.org id=B71853.171977002623259 (code B ref 71853); Sun, 30 Jun 2024 17:54:02 +0000 Original-Received: (at 71853) by debbugs.gnu.org; 30 Jun 2024 17:53:46 +0000 Original-Received: from localhost ([127.0.0.1]:59040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNykD-000635-PM for submit@debbugs.gnu.org; Sun, 30 Jun 2024 13:53:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNykB-00062n-6J for 71853@debbugs.gnu.org; Sun, 30 Jun 2024 13:53:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNyk5-000115-Mp; Sun, 30 Jun 2024 13:53:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HhEwX8LpwgkFMv/6sfi4gOmHeKCbGJO1M5cq7JKMoRQ=; b=QgYlWmXXYPqp Dtik3uaEkexDxGqkebSkIE2UEjj9qhj4pTjSZLNJ/RxBaSO92eF2q2MWY1R6vFA8dl+Jcz/iX3+Dh kb6a1SukU1DdQc3TtPgcuaiTq/GfhGggArC/Gvxi2VGBTb/XF7O5JIkon8Zo73sLat5cUUoPcOIoc NhDe2Td3vZgGLlCzHaCozDtS5qigL5CJwkVsb4XzmtMf/lNICewEtsKg5hDVUvl2WyfHNR20QY1ts Mc41NEwWv4v4ueBLHTFwTjtZ7/NA0aXvEGwL/QamC7aN7i8wKO5R8qO0d4ana0NMXngvxXu1Thjsv 9wiD9BCF1l/Ax73UqRNZNA==; In-Reply-To: (message from Tze Chian Kam on Mon, 1 Jul 2024 01:58:30 +1000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288217 Archived-At: [Please use Reply All to reply, to keep the bug tracker CC'ed.] > From: Tze Chian Kam > Date: Mon, 1 Jul 2024 01:58:30 +1000 > > > From: Eli Zaretskii > > Date: Sun, 30 Jun 2024 12:07:06 +0300 > > Please show the exact file you used as the compilation command, > > because I cannot reproduce this with a few programs I tried, see > > below. > > Sorry, I used a Python file: > ``` > import time > > while True: > print("active") > sleep(1) > ``` And how exactly did you invoke this? Please show the complete command you typed at the prompt of "M-x compile", because trying to reproduce this (see below) I could't. Also, can you interrupt the same program if you run it from the Windows command prompt window and then type Ctrl-C? I tried to run this program (without knowing how exactly did you do that). Here's what I did: . saved this program to a file loop.py . in "emacs -Q" typed the Emacs command M-x compile RET python loop.py RET I then got an error: python loop.py active Traceback (most recent call last): File "loop.py", line 5, in sleep(1) NameError: name 'sleep' is not defined Compilation exited abnormally with code 1 at Sun Jun 30 20:47:35, duration 0.12 s I then modified the program as follows: import time while True: print("active") time.sleep(1) and ran the same compilation command again, then typed C-c C-k into the compilation buffer. The result: python loop.py active active active active active Traceback (most recent call last): File "loop.py", line 5, in time.sleep(1) KeyboardInterrupt Compilation interrupt at Sun Jun 30 20:49:10, duration 4.37 s which is what I would expect. My Python is version 3.4.4, for native MS-Windows, installed from python.org. So bottom line: it works for me, even with your test program. I'm puzzled why it doesn't work for you.