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 E07EF298C4 for ; Wed, 28 Feb 2024 03:05:24 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1709085924; b=dUY0M5JlU5oeHpGDOWaJKn80kLj1C2DyzXaXqaVczSGB2e78wL0/f69Ivr5Er6C2PvKC0pgfn9 OTBDARPJeqXKltlipHRaMjieZo0BMlypPYFbnEN0I1R+65vsgF0OQS5YC8AFG8Vj8ld6rc/VUD ysc39ytidRIcPpLlTChl9hEy+NC4oMUZV0AaEG39RBQiRfDCKDQajgGoJrlSdUBBsPc3FxYyIz m7cZHCPmZ+d0AlySS9GPo29meeInpqlF2j2Qa1m8OvbnoLufTnnliN2DP5DcaMMD0qs8A5ko8j f6TPu4wAjkk8YRMSHfqh4Jf0jzypG4d/gTIsbl8a1LVesQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1709085924; bh=GP81ebqJMrz+1PQx+ELmNrSno/XuJhUdJLYX0IBGzoI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=amm390cfc/ooHT9LVxxbA9IRZnXozg4rbgAMWcTkeGN1wepr7X5L3LXgtFdIRsctbjzOSiR/Js 4ZGPsDKbYRZlqu3AgALLlJ8wRPEDQSXRyDfvOtNDo9wUB/p7UynhRZOwarTxXyPLWAiIrzfKkX xNmviO7iYv7OYGL3IQpMD7+G72QhxkrnzSGaRFTB8gypJXCDNl1ttnVae181EH3YHKMNHdWVYV GG8DkyOoJ9tsBzGKlxBroHLE+mekcms/jjdNI+qkGcnKkYEQ2ZdWM3Mff9InhPTHfJ/a/ztcWW XOcC7PSCIyQyJPkjGVCwH/M9j6DyLkL4kxThGIvh8xSA1Q==; 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:Content-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=RgDqFPp8veuDSLEAM989IPMm5az3oyaXwRfqhdubZEc=; b=Tl4s425tj9eNiOdP9m4HKWJY1b AbZ5CXGZdUGhydpozWOX0Tfe0fkefvzKhOej8gBUGFuPZS4QBnKq3+aZy28QMWfxylA06opSM3WK5 zyTyZCoC14Kpj+8SRKt13hkA3ayT4ouX1hywuYIQjDVFV0Vy03hKOLjtKDS496MIGA10YT+JUazQR 9O87+Z0Xb59q7euZplC7/D9lfk/C0OekTV56K6dggD0QA7UEJIIDSzkQ3T6OIkqW6fo9SBIMmGYmJ 4GRbdi00YuGmOV/xrHlvMDj9CYTuJ93utDwNOTkjeHMFF4eJDpgA7uBL5RiShL66o6l+RZ3pJh4Sm E9A/l5jg==; Received: by zero.zsh.org with local id 1rf9K0-000Ier-Go; Wed, 28 Feb 2024 02:05:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f44.google.com ([209.85.208.44]:56738) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rf9JO-000ILL-0V; Wed, 28 Feb 2024 02:04:46 +0000 Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56533e30887so5731325a12.1 for ; Tue, 27 Feb 2024 18:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1709085885; x=1709690685; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RgDqFPp8veuDSLEAM989IPMm5az3oyaXwRfqhdubZEc=; b=nWleTj6IhtLZRef2Tc42BGPrKcN7zWwCiIXhW/9d/g+2/4V2NBEv8hTV80/3/mU2gU z4deWx5b7LveVrocn5kXImzZywbm3Mug7n1u4vvwelfWHNIuNVWVXW3rhCalB2VKGAlt yTE9pprYwnpLiOiwTTHHO6PshJs/A1otygWCKjDCtUmbFJPGKh8jpeD8QQrXqaMZitgT ZryHbuZj5tU/LgtFIMuPn+Bl0Rt1z//B57XkgPT1LXhuqOpM9evyYyE4QHBszsOWNnvp pqr50GWcy0aYXu/FCH7Ysipc6IHMUQW/cZqXivd2PWXpVNLqN9d8ZAPMEfFSTeB5Hj3y taFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709085885; x=1709690685; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RgDqFPp8veuDSLEAM989IPMm5az3oyaXwRfqhdubZEc=; b=AMUsuDEzHzlS5q9IYma8XMFMD+TjMAIw8RQq85873NpL3kjkVgbu8Z3lu1x3dqGaMz 92hnnroDfWz467Q29hdIB4CppiH1ewnM+gdfJvXBoAOPXBGkSO/V2HZDzhjBKSJxsLlz Gq19mce3/NtfgZOsqBFce0DDn0/C3ua4O4cn2WLpm05fqUybvKUUVvdHG1KQreJ5d5G+ L3wsw6XyeHb2CW8FhATvV5V8zwmvyNXtkUK83EUOhu5ga6lEP7O3nOXFzod2BT9CE/0y CZG0AcvR3ojQd8uA7J1TWfvoJo3jhkKsSyRZ1EL8cO5QA1QP6p4c7DcG72HC4CgG18It SoDA== X-Gm-Message-State: AOJu0YzdszOeTFOYqDn0lWCqvwIzwHlFLjeayj/AW6Upy5+tSpWWPlFu HyrKloUc+DVaA4tr1C6kqh98MknXy35iUXJZ5mfzg6EbcPFUw79JkoeDgoYpJAEKWdAxFI/xPCn LpGfcqZf5SHIBJtnsOKzRjazvlgZ2FWVKqGQfL1q9c+k2oHVdrw== X-Google-Smtp-Source: AGHT+IGHvk+NoruXtD/QUkBUXOSWB7bKoDRPgpMnyUjnpagJI2bP9yA6Fts+FpCLMCfWq/aLduWuN7/n1RT/naL3Tik= X-Received: by 2002:a17:906:4ecd:b0:a43:b472:9a57 with SMTP id i13-20020a1709064ecd00b00a43b4729a57mr2186556ejv.62.1709085885258; Tue, 27 Feb 2024 18:04:45 -0800 (PST) MIME-Version: 1.0 References: <20240227070502.ek5ocpwxm6cpp5gz@chazelas.org> In-Reply-To: <20240227070502.ek5ocpwxm6cpp5gz@chazelas.org> From: Bart Schaefer Date: Tue, 27 Feb 2024 18:04:34 -0800 Message-ID: Subject: Re: "kill -STOP" as noticed in ksh93u+ gitlab To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52627 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: On Mon, Feb 26, 2024 at 11:05=E2=80=AFPM Stephane Chazelas wrote: > > So that's about extending an old (obsolete) behaviour to > graphical terminal emulators and only for macos which is the > only system that I've heard of where terminal emulators create a > login shell. It may be that MacOS is the only one where the default is that way, but I nearly always configure my terminal windows to create login shells on every X11-ish desktop I use. Further if the terminal is running a remote shell that'll also be a login, and if you suspend a remote shell it's rather more difficult to resume it (unless you're using "screen" or remote tmux or something in which case you disconnect rather than suspend the process). > But, that seems wrong. It made sense in the 80s where if you > froze your login session, you would have no chance to recover > from it. But in the graphical emulator case, you could envisage > one wanting to suspend their shell (login or not) and resume it > later with a SIGCONT from another shell (in a different terminal > emulator or different ssh session...). 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 think this is more to prevent accidental stoppage?