git: 72d3e6677f47 - main - ping: Specify the sigaction(2) name
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 18:01:05 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=72d3e6677f477defa5b3741f42b0cca39bafeee9
commit 72d3e6677f477defa5b3741f42b0cca39bafeee9
Author: Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-02-10 14:01:22 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-10-11 17:48:28 +0000
ping: Specify the sigaction(2) name
After a2a008880568eaeb87d8404b39627b83df851f34, specify the signal name.
Obtained from: Darwin
MFC after: 1 week
Reviewed by: asomers
Pull Request: https://github.com/freebsd/freebsd-src/pull/863
Differential Revision: https://reviews.freebsd.org/D38484
---
sbin/ping/ping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 848ffbbb7c76..ad16ff5a5ee9 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -890,7 +890,7 @@ ping(int argc, char *const *argv)
si_sa.sa_handler = status;
if (sigaction(SIGINFO, &si_sa, 0) == -1) {
- err(EX_OSERR, "sigaction");
+ err(EX_OSERR, "sigaction SIGINFO");
}
if (alarmtimeout > 0) {