Skip to content

Commit

Permalink
signal: fix name for SIGBUS on darwin
Browse files Browse the repository at this point in the history
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:
moby/moby@10dc16d,

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 <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 5, 2021
1 parent 8a51b5c commit bee43a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signal/signal_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bee43a1

Please sign in to comment.