aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_bsd.h
diff options
context:
space:
mode:
authorChuck Silvers <chuq@chuq.com>2021-06-30 02:48:56 -0700
committerDmitry Vyukov <dvyukov@google.com>2021-07-02 18:37:31 +0200
commit55aa55c24fe77aae07d530662f91b4d50c4990f0 (patch)
treee801ce4af7f43d5a68acec15c3801fcdbb8d29a3 /executor/common_bsd.h
parent658ebc66ddf4b2d7ebaf8ecf291da16a1528eeef (diff)
executor: initialize scope in fault_ioc_info
The "scope" field of struct fault_ioc_info is an input to the ioctl, so initialize it to FAULT_SCOPE_LWP to match other fault_ioc_* usage.
Diffstat (limited to 'executor/common_bsd.h')
-rw-r--r--executor/common_bsd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 398d402fb..131ab0764 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -73,6 +73,7 @@ static int fault_injected(int fd)
struct fault_ioc_disable dis;
int res;
+ info.scope = FAULT_SCOPE_LWP;
if (ioctl(fd, FAULT_IOC_GETINFO, &info) != 0)
fail("FAULT_IOC_GETINFO failed");
res = (info.nfaults > 0);