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 12:07:06 +0300 Message-ID: <86plryhk91.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13619"; 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 11:10:12 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 1sNqZX-0003Ht-6N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Jun 2024 11:10:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNqZP-0007nA-Ui; Sun, 30 Jun 2024 05:10: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 1sNqZO-0007ll-CG for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 05:10: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 1sNqZO-000212-3W for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 05:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNqZN-000209-Rk for bug-gnu-emacs@gnu.org; Sun, 30 Jun 2024 05:10:01 -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 09:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71853 X-GNU-PR-Package: emacs Original-Received: via spool by 71853-submit@debbugs.gnu.org id=B71853.17197385677621 (code B ref 71853); Sun, 30 Jun 2024 09:10:01 +0000 Original-Received: (at 71853) by debbugs.gnu.org; 30 Jun 2024 09:09:27 +0000 Original-Received: from localhost ([127.0.0.1]:55100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqYo-0001yq-F4 for submit@debbugs.gnu.org; Sun, 30 Jun 2024 05:09:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqYn-0001yb-1I; Sun, 30 Jun 2024 05:09:25 -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 1sNqWa-0001Vk-Jk; Sun, 30 Jun 2024 05:07:08 -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=yLq3flUeOx7kP4EorVfjlh4ocPsGcxrPyI4abgzxsPM=; b=USa5IsuL/6/B 5lIXyrvvV2t/4/mlRJHuFF8iepaU3Q1VliQp2cQRukXqBUnRwLtmc8j1EF+uBV2oEem+XUf0buas8 IEMH6LTyK//I+HSWDezpK1MlP5qHYWa4fRm5J2HEpRaOnmOt37wIbrYe5U1WmZnv+zRGLQZnXwTfl UmXXWLN0ASo23kYAq33lTWo1uqETIZm+f7RRm2eQ1JsIo8DNNiwQkjqw7RHSX2E8JMndEeBZwyo7z fpe1GeNs98MqoRqJeRAyJTi/da+oRfrcl5ONTcmpXbjaQzB2wH7v92oXtObokiETTF+TekbvT34Kd 1cCcZl1VbpK2J1xD19QpnA==; In-Reply-To: (message from Tze Chian Kam on Sun, 30 Jun 2024 12:57:11 +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:288179 Archived-At: tags 71853 moreinfo thanks > From: Tze Chian Kam > Date: Sun, 30 Jun 2024 12:57:11 +1000 > > Steps to reproduce: > 1) Open Emacs with `-q`. > 2) Run a trivial file with an infinite loop with `M-x compile` Please show the exact file you used as the compilation command, because I cannot reproduce this with a few programs I tried, see below. > Expected outcome: > Should be able to kill the process with `M-x kill-compilation` or > `C-c C-k`. > > Actual outcome: > `C-c C-k` is ignored and `M-x kill-compilation` is ran but does not > stop the process. I tried this with several commands and it worked for me with all of them. Here are the commands I tried: . sleep 20 . ping -t SOME-EXISTING-SITE . a batch file which does this: @echo off :again ping -n 1 SOME-EXISTING-SITE sleep 60s goto again In all three cases, I get the same expected result in the *compilation* buffer: Compilation interrupt at Sun Jun 30 11:58:49, duration 4.44 s (with the time and the "duration" values changing as appropriate). So I suspect the problem is with some specific command/program or a group of programs that behave in a specific way. Thus the request to show which program you used in your case. (Just to be sure: you typed "C-c C-k" from the *compilation* buffer, yes? If you want to interrupt the compilation process from another buffer, you need to invoke kill-compilation by name, via M-x.) > For now, I have a workaround to advice `compile` to interactive mode > (comint) and killing the process with `C-c C-\`. Is this a Windows > problem or my setup? Not clear yet; more info is needed.