From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 23EE32834A for ; Wed, 28 Feb 2024 06:40:21 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709098821; b=WbLCbDhU/9eKUc5UKbTAriXVFeo0sNzcDJ0aZlI0HEAWmnZ4+mjTxElaLrf6szl+TJPlE1FV/9 1qAfFAq5+jezSpEa4i0l8JzGBnOBXkJ81DP83j95IfVRumnaikBrSaZ8WNa7WHLERNt00tIx0o i6Nobz+dqnXvw1x1+zbbvItw1QGtjWi1/uoJEBdqemD+H1GjUfdmRrzRqvs5nXG73/+EKoTStZ ToPNaHgTv5tjW4a/HlJQMbyp29EdkSHYMAETV75kt0Y8yTypI5T8e/ep1J7pvXSV1J6/fhLpjS lWVPyNNJCIx5yyesnL7zzW2C+G5VOMhVtx60qBKq4CMowg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay3-d.mail.gandi.net) smtp.remote-ip=217.70.183.195; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1709098821; bh=KZVIakH/Sxv9ERroJnuK3Vi/tErU74r9fCjGvKSzKFY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature; b=g/q7dGEa3XcQ/vSVDelzQ/9f13WqT7PoZb3TspPDiF1FWBXXKTAUoq/2PQ8cP/DFnP62t+FjSM u/y0tsTqtuC0m9WEMqHvTNZD1RWcjez1ADZ6VeGI0GMqTj3+j50JsVuX4css23nA3k76juiAez pzPSCLs4pGY270B4U2XsKU6Tl5qUv87Zt6o156T5UUnxk+NeKDt/yKOFUH8hTAkNzs9kOqFuCo jncXGpJ9MD3bxzhqbcRoSFleFu21E4yj7CzIMwGXJ7kfSWRDKwzRw6PUIpF/mik+5vTh1uWAI2 Y2lrO8nuKIcdVu+2V3JD/zaDQzFXkOmDgb0XAe4GOlaVUg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OiLYHZhBmQv6QRQL1jSwrN3pRUI3f7WC+Mj6yYjym/U=; b=K+gJ48gBDupGy8OKgntlQG2OE6 IvbneJaos77lG9900Ji2hAJYa5B874WQAEI88U6Y0MlCJx45i9mbmDnJSfM6o1G+2oK00zGVUHrGX PqIf7dTC8n6vIQUcL0YB7zz568mfhmvdd33XwnFpO9BI9rSEWGzJtw0KDhk3yEA6t+g6dXcmdaeYw FeaxaJ3fJtLqrKh6AtE2guBurS2xlN8L/TfXj5Z++vfX1zsxtFAlNMtvJGcKGsFhuF5cfUrNOLxLR 9ApVkYJ8i4CmiZBEvNDaGNTLjf4iqb/EzcN0vgYRisHnFGtoueNUvU0dtyZ4mqP/dmYtwtIUBf2i/ l5VGk6dQ==; Received: by zero.zsh.org with local id 1rfCg1-0000tb-IF; Wed, 28 Feb 2024 05:40:21 +0000 Authentication-Results: zsh.org; iprev=pass (relay3-d.mail.gandi.net) smtp.remote-ip=217.70.183.195; dmarc=none header.from=chazelas.org; arc=none Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45585) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1rfCfI-0000XW-Sh; Wed, 28 Feb 2024 05:39:37 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id D9EDE60008; Wed, 28 Feb 2024 05:39:35 +0000 (UTC) Date: Wed, 28 Feb 2024 05:39:34 +0000 From: Stephane Chazelas To: Bart Schaefer Cc: Zsh hackers list Subject: Re: "kill -STOP" as noticed in ksh93u+ gitlab Message-ID: <20240228053934.cp76m7jfnhommrl3@chazelas.org> Mail-Followup-To: Bart Schaefer , Zsh hackers list References: <20240227070502.ek5ocpwxm6cpp5gz@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GND-Sasl: stephane@chazelas.org X-Seq: 52631 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: 2024-02-27 18:04:34 -0800, Bart Schaefer: [...] > Changing the "kill" command doesn't (in zsh at least) affect the > "suspend" command. > > schaefer[592] Src/zsh -f -o login > % suspend > suspend: can't suspend login shell > % suspend -f > > zsh: suspended Src/zsh -f -o login > schaefer[593] fg > [1] + continued Src/zsh -f -o login > % kill -STOP $$ > kill: kill 605210 failed: operation not permitted > % [...] I can't reproduce that on Ubuntu 22.04. The wording of that error suggests it's the system blocking the kill() with EPERM. > I think this is more to prevent accidental stoppage? I'm still of the opinion that "kill pid" is low level enough an interface to kill() that it should not be interfered with, but that's not a strong opinion by any measure. If we're blocking kill -s STOP $$, should we also block kill -s STOP 0 and kill -s STOP -1? -- Stephane