zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: add descriptions for some Solaris signals
@ 2024-02-27 20:18 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2024-02-27 20:18 UTC (permalink / raw)
  To: Zsh workers

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" }
     }
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-27 20:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 20:18 PATCH: add descriptions for some Solaris signals Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).