From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20993 invoked from network); 5 Dec 2023 02:26:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Dec 2023 02:26:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1701743164; b=gt3yGa0vR/Ehq6uL0G53mCAk4tYyzQ88UuMU3eLOpSzq9gOPmLJWJzYfrwmlDMQ5M0GiyygONE 0v5mojapTalkNT6vRPxUHt+aSjUskALYtQtouSwy52/iLX6NvBUsCDZG0oWgXC/jCdqzc3j7a2 1TlAc3hQewUBzvsgD1CEBjwOHaavFbZAoRoDe+jEMyz3ACla/mx2MExB66Pacjg7KwA1bPAP7I w/ldUatFquVUVH0fS04K+avr0N/37fM4W6CtJFkarmvpoVsSmxEKZMccVVuGnb8aiko9LwzRXp JoHannp81CuIB9dEObHA5OoxV3nmudPNZ6jU2t4fGfZ9Ag==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wm1-f54.google.com) smtp.remote-ip=209.85.128.54; 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=1701743164; bh=Au4m71t0cJTSJofPvUken2YwjKIWau1Nr/l7O3Dvwrk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=qsge8uZXbehi6LRmOzeFZLuwALY1GQacvcxrje18xdGEoxWgkR6LS61DLeJCbCdhqgKGgy1Nwp JBKtxqJ7VRvXJtGN4JXvX70C7cIysH1dG20mikZIaTG6sOkV0scKen4RZhmrCyJS8JNQzKnIdC +pj1yv1jvy1I+URM7zwHAipYwveL6xiMSL2yHmNXDpjq1jHwz9UB8EA3t/GO2uZ7PQjUS/+MkS VErmcSbhPe720Mqa5zSGrk/BkTnJK8XuzPuw3aGRUiwp7IO7zEjYBHL8pf0Ww1ZhxFTCxfmEN9 CBSfk6+Cbtx2MX2Q2/Ou10pwTCUeI8lcGkkjSMpLUrsBNw==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ak3j91VG1VaqWboLlvcFjATBJ7zOhTlxJGH7r0OUKbQ=; b=aOMSrolc9iQCSZyRW5IMj52Mwf 0fcG5pCRslb6jD9UKWsIWOFVgWLHKWu55jjYvwgK5Q/hJ+VaxjYwHJJe7J49Nx77//oPxssPwyTA5 Uok+WoFmPeFjXes1LYGMn/5sKjZM5dIKbV/QJ8SA13qsLykUznS7lMLAaq5GjnoLqNXo0vAvhZZjj tJpgT1wVrQWfvQRVD0DEturVc7frwrdrIlSHI4+dPsj3EhjVxkuhd0HO39JYBIRh+j3uirK6oi3e6 h6eHXcTRtEwAoYlVoy13rGBoHg2WXT424yc5KToy7h3PQGyiultIxLAVR+ayjhIZOz6GjWCeux5WK CV7zqv5g==; Received: by zero.zsh.org with local id 1rAL8N-000FgS-HV; Tue, 05 Dec 2023 02:26:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f54.google.com) smtp.remote-ip=209.85.128.54; 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-wm1-f54.google.com ([209.85.128.54]:56341) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rAL8A-000FO3-0o; Tue, 05 Dec 2023 02:25:50 +0000 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-40c09f5a7cfso21290305e9.0 for ; Mon, 04 Dec 2023 18:25:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1701743149; x=1702347949; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ak3j91VG1VaqWboLlvcFjATBJ7zOhTlxJGH7r0OUKbQ=; b=arz/B6ukXLyzRwt1YY0l7amZw0uTzx+0bnpj+1ke00oMpZz9cZ/0qDez8WniujIJiW QCffzXU7kmwIEuuxV5pqNd32yq+cVvgbMMelq6nN0Gi7HttO3GqMX/VLjSobyYKRoTKw PSjttE2CllBAlRR/XN++tttPAVtlpWE1n0Fk3u6ZNlc+fri8ztJGVTcTLTKXLnAOZPxr ZLmVxqoRSIYXSxfpBGpbY5O+DNUhAcnJrd5sToKjFHFfFXuyXGg1d2ax1bqX8ASoFXed RuiifNyLuCWXcfN8sUs9dJVqwOPf3YnJ8ZPwBMpgxhCNdWPTZu8QZTXT9PwTNnN/OmsI XP+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701743149; x=1702347949; h=content-transfer-encoding:cc: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=ak3j91VG1VaqWboLlvcFjATBJ7zOhTlxJGH7r0OUKbQ=; b=XMiJ1HqErHRLv9Gs/ajQ9w/DBmM8aGgjm8SD1IS1lLaFaVkSpYINUNrw6JZnTjVqKG +IZlEunHuTauwMqLQH3ccXD5g9jWOV/PpY043XX9/jbJDcAntj9Ma8fOwwGVqb/s3+o+ d/TqRLiEgEC6WJSlaHC40XWwTjCnjlio6Ji4aiFMGgUHLWD6zB5jHkDFb+d7AswJd+TJ 9yD1oiauGH0+z1HDiR297zILKS5Kw5TxlPh4wZqf2xjl6/FGaAKTmXxriykxqNeJO3Ow Iij4lW0iOSPlDWpEJSRKDaYVgOtl+qTJjh5v09GCf4kABmjdHAhEhRgrapq+k5dYTvmQ q1Aw== X-Gm-Message-State: AOJu0YxRjo2wdMw0Df78bHhWq8uwJGIK4Mx8HFUbLu1lcVz3lqFvSIio 2R7XLuauJMpf3tIDggZ+8NafEFRKSbo/YrHRQYDtJw== X-Google-Smtp-Source: AGHT+IFzrDDA0ZrKHlfkQK1P+RjJUsJWgT0ogqnmapMY+F5HeYh9fnxnfcBpp6WcQd7IAxCWXZocv2xVVbI36xfjPGg= X-Received: by 2002:a05:600c:4692:b0:40b:5e21:ec17 with SMTP id p18-20020a05600c469200b0040b5e21ec17mr43265wmo.73.1701743149364; Mon, 04 Dec 2023 18:25:49 -0800 (PST) MIME-Version: 1.0 References: <74520-1700869567.390063@twie.42H7.9hr2> In-Reply-To: <74520-1700869567.390063@twie.42H7.9hr2> From: Bart Schaefer Date: Mon, 4 Dec 2023 18:25:38 -0800 Message-ID: Subject: Re: PATCH: add -q option to kill for sigqueue To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52376 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: Missed the questions in this before ... On Fri, Nov 24, 2023 at 3:46=E2=80=AFPM Oliver Kiddle wrote: > > We could potentially make the signal value and other details such as > si_pid available to trap handlers. Perhaps using namespaced variables - > e.g. .signal.pid and .signal.value? The signal is first picked up by signals.c:zhandler(), and thereafter only the signal number is passed down the call chain to signals.c:dotrapargs() which arranges to call every trap function with its signal number as $1. So you probably need to wrangle si_pid etc. in zhandler(), but you have to be very careful about memory management (ideally, don't do any). > It also ought to be possible to make SIGRTMIN through to SIGRTMAX > available. util-linux's kill allows those to be specified as RT, > RTMIN+ or RTMAX-. Would that need us to muck around with > signames2.awk or is leaving them out of $signals / kill -l and using > #ifdef RTMIN sufficient? No opinion on whether they should be left out, but it does appear that signames2.awk would have to be tweaked, yes.