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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 8B9D526B11 for ; Tue, 27 Feb 2024 21:18:14 +0100 (CET) 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:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=Tj3Lb8CnBZ7Ep7M8qUWTYbGMMcIvty4a8Qcv2cDtfmY=; b=Cjtr4UYK86IxLPCrunL0+g4VwS nx/zyXOqNgevXA5zF86rD7j4beGWV/DtBZqCtY66EdTXj5jtPwI9ojPwC/Bi+CMpNEbAw2fQvbL5u 24Jh/rgluKHuaVGoHhEXcmCcrcl5OuFMJodgQxIZXZ8EvWtx9csrWKqQRsVVUtNGrdNggRLEh2FaD b8wXaCgUst1EuGSklUOK1fRZWzSd+WPKA78KHVWcGw5VUeaPOjxZ0csWYzhpqWF0rWaxokSGOU1fP g0mMoheX7wqvbgCi7/2PGxjNNNXXjvp0U5w8/06U7kDtOprIQz2Y2YHRSKnuQFN+0gwFZXeivjIWw m0wMKD5Q==; Received: by zero.zsh.org with local id 1rf3u1-0008P7-RY; Tue, 27 Feb 2024 20:18:13 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rf3to-00086S-Ig; Tue, 27 Feb 2024 20:18:00 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.97.1) (envelope-from ) id 1rf3to-000000004Gl-0aUR for zsh-workers@zsh.org; Tue, 27 Feb 2024 21:18:00 +0100 From: Oliver Kiddle To: Zsh workers Subject: PATCH: add descriptions for some Solaris signals MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16413.1709065080.1@hydra> Date: Tue, 27 Feb 2024 21:18:00 +0100 Message-ID: <16414-1709065080.137018@S9DK.UVP-.GXDx> X-Seq: 52623 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: While testing the real-time signals on a variety of platforms, I took note of cases where we don't set descriptions. These are probably only useful for signals that have a default action that terminates the process. For example, SIGSTKFLT on Linux appears to be unused and does nothing so it is probably intentionally missing. The three added in this patch are all Solaris. On FreeBSD, there are THR and LIBRT signals that are marked as reserved. We should possibly be filtering these out entirely (as bash and FreeBSD's sh does). OpenBSD's sh doesn't filter the corresponding SIGTHR. It also includes the descriptions in the output of kill -l which is perhaps rather useful. Any thoughts? Oliver diff --git a/Src/signames2.awk b/Src/signames2.awk index 5738030c6..0b254f751 100644 --- a/Src/signames2.awk +++ b/Src/signames2.awk @@ -27,6 +27,7 @@ if (signam == "CONT") { msg[signum] = "continued" } if (signam == "EMT") { msg[signum] = "EMT instruction" } if (signam == "FPE") { msg[signum] = "floating point exception" } + if (signam == "FREEZE") { msg[signum] = "checkpoint freeze" } if (signam == "HUP") { msg[signum] = "hangup" } if (signam == "ILL") { msg[signum] = "illegal hardware instruction" } if (signam == "INFO") { msg[signum] = "status request from keyboard" } @@ -43,6 +44,7 @@ if (signam == "SEGV") { msg[signum] = "segmentation fault" } if (signam == "SYS") { msg[signum] = "invalid system call" } if (signam == "TERM") { msg[signum] = "terminated" } + if (signam == "THAW") { msg[signum] = "checkpoint thaw" } if (signam == "TRAP") { msg[signum] = "trace trap" } if (signam == "URG") { msg[signum] = "urgent condition" } if (signam == "USR1") { msg[signum] = "user-defined signal 1" } @@ -51,6 +53,7 @@ if (signam == "WINCH") { msg[signum] = "window size changed" } if (signam == "XCPU") { msg[signum] = "cpu limit exceeded" } if (signam == "XFSZ") { msg[signum] = "file size limit exceeded" } + if (signam == "XRES") { msg[signum] = "resource control exceeded" } } }