Trap SIGBUS while doing port probe. On FreeBSD a SIGBUS is delivered

when accessing port that is not accessible, which is the case when
running vmware-vmcheck on bare metal system.

Approved by:	swills (maintainer)
Obtained from:	FreeNAS
This commit is contained in:
Xin LI 2014-02-28 18:57:01 +00:00
parent 0c1cb07dbe
commit 2340b4e009
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346566
2 changed files with 11 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= open-vm-tools
PORTVERSION= ${BUILD_VER}
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-9.4.x

View file

@ -0,0 +1,10 @@
--- lib/vmCheck/vmcheck.c.orig 2013-09-23 08:51:10.000000000 -0700
+++ lib/vmCheck/vmcheck.c 2014-01-27 20:58:46.000000000 -0800
@@ -134,6 +134,7 @@
#else
do {
int signals[] = {
+ SIGBUS,
SIGILL,
SIGSEGV,
};