From bee43a1c5aa31dd829d333488608eeb5f9781e9d Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 5 Aug 2021 23:25:46 +0200 Subject: [PATCH] signal: fix name for SIGBUS on darwin I noticed that the name for `SIGBUS` on Darwin was mapped to `BUG`. To be sure that a `BUG` signal is not actually a "thing", I looked at the history for this; this mapping was originally added in: https://github.com/docker/docker/commit/10dc16dcd3aa82be256e5072a25dcf18af8e3844, Looking at the Darwin headers, I also don't see a mention of a `BUG` signal: https://github.com/apple/darwin-xnu/blob/b6dbbb99918752ac84da97aa9b473bd974afc609/bsd/sys/signal.h#L98, So, I'm assuming this was a rather funny slip-up, which makes this a "BUS-FIX" ? Signed-off-by: Sebastiaan van Stijn --- signal/signal_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal/signal_darwin.go b/signal/signal_darwin.go index 946de87e..355b0d2f 100644 --- a/signal/signal_darwin.go +++ b/signal/signal_darwin.go @@ -8,7 +8,7 @@ import ( var SignalMap = map[string]syscall.Signal{ "ABRT": syscall.SIGABRT, "ALRM": syscall.SIGALRM, - "BUG": syscall.SIGBUS, + "BUS": syscall.SIGBUS, "CHLD": syscall.SIGCHLD, "CONT": syscall.SIGCONT, "EMT": syscall.SIGEMT,